From: Sean P. <sea...@ma...> - 2009-07-22 17:50:45
|
Radar bug is 7082435 (I need to contact someone at at Apple, I still have a wacky set of privileges with radar that seem to have me as both an Apple and Adobe employee - I can close bugs but only file bugs against special Adobe components). Sean On Jul 22, 2009, at 10:33 AM, Foster Brereton wrote: > Excellent -- thanks! > > Blessings, > Foster > > > On 22/07/09 10:05 AM, "Sean Parent" <sea...@ma...> wrote: > >> I narrowed it down to the following - clearly a compiler bug. I'll >> file a >> Radar report. >> >> Sean >> >> ---- >> #include <cassert> >> >> namespace { >> >> struct empty_base_t { }; >> struct empty_t : empty_base_t { }; >> >> struct pair_t : empty_t { >> empty_t& first() { return *this; } >> int& second() { return second_m; } >> >> int second_m; >> }; >> >> } // namespace >> >> int main () { >> pair_t x; >> >> x.second() = 0; >> x.first() = empty_t(); >> assert(x.second() == 0); >> >> return 0; >> } >> ---- >> On Jul 21, 2009, at 2:10 PM, Foster Brereton wrote: >> >>> FYI -- Sean, any interest in taking a look at this? >>> >>> Blessings, >>> Foster >>> >>> ------ Forwarded Message >>> I have the ASL crash in its own project, 20 lines, crashes in the >>> same way - >>> when stuffing the fourth element into 'aDict': >>> >>> #include <adobe/dictionary.hpp> >>> #include <adobe/name.hpp> >>> >>> int main (int argc, char * const argv[]) { >>> >>> adobe::dictionary_t aDict; >>> >>> adobe::version_1::static_name_t one("one"); >>> adobe::version_1::static_name_t two("two"); >>> adobe::version_1::static_name_t three("three"); >>> adobe::version_1::static_name_t four("four"); >>> >>> aDict[one].assign((adobe::any_regular_t((double)1.0))); >>> aDict[two].assign(adobe::any_regular_t((double)2.0)); >>> aDict[three].assign(adobe::any_regular_t((double)3.0)); >>> aDict[four].assign(adobe::any_regular_t((double)4.0)); >>> >>> >>> return 0; >>> } >>> >>> ------ End of Forwarded Message >>> >>> >>> > -----------------------------------------------------------------------------> > > > - >>> _______________________________________________ >>> Adobe-source-devel mailing list >>> Ado...@li... >>> https://lists.sourceforge.net/lists/listinfo/adobe-source-devel >> > > -- > Foster T. Brereton <ἰχθύς>< Ro > 3:21-26 > Computer Scientist 2 --- Photoshop Engineering --- Adobe Systems > "What 99 percent of programmers need to know is not how to build > components but how to use them." -- Alexander Stepanov > > |