[Bug 861911] New: Internal compiler error g++ 4.8.1 thread_local static storage in class template
https://bugzilla.novell.com/show_bug.cgi?id=861911 https://bugzilla.novell.com/show_bug.cgi?id=861911#c0 Summary: Internal compiler error g++ 4.8.1 thread_local static storage in class template Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aeon.flux@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23 Internal compiler error after adding the storage class specifier thread_local to a static variable in a class template. System: g++ (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388] Linux #######.#### 3.11.6-4-desktop #1 SMP PREEMPT Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64 x86_64 x86_64 GNU/Linux Reproducible: Always Steps to Reproduce: Compile this (bug.cpp): template<typename T> class Foo { public: Foo() { ++c; } private: thread_local static int c; }; template<typename T> thread_local int Foo<T>::c(0); int main(){ Foo<int> o; } with this command: g++ -std=c++11 bug.cpp Actual Results: bug.cpp: In function ‘int& _ZTWN3FooIT_E1cE()’: bug.cpp:17:1: internal compiler error: in var_defined_without_dynamic_init, at cp/decl2.c:2811 } ^ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=861911 https://bugzilla.novell.com/show_bug.cgi?id=861911#c Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@suse.com AssignedTo|bnc-team-screening@forge.pr |rguenther@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=861911 https://bugzilla.novell.com/show_bug.cgi?id=861911#c1 Richard Biener <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #1 from Richard Biener <rguenther@suse.com> 2014-02-04 10:44:23 UTC --- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60056 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com