This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26882] [AVR][C++] ICE when using template function with memory attributes
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2011 20:30:34 +0000
- Subject: [Bug target/26882] [AVR][C++] ICE when using template function with memory attributes
- Auto-submitted: auto-generated
- References: <bug-26882-4@http.gcc.gnu.org/bugzilla/>
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*);