This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/26882] [AVR][C++] ICE when using template function with memory attributes


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26882

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gjl at gcc dot gnu.org
      Known to fail|                            |4.5.2

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-06-10 20:30:12 UTC ---
Reduded testcase that threds avr-gcc 4.5.2:

template<typename T>
T * rom (const T& init)
{
    static T t = init;
    return &t;
}

int * rom1 = rom(123);

extern bool __cxa_guard_acquire (void*);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]