|
From: Sean P. <sea...@ma...> - 2009-07-22 17:05:54
|
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
|