This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66944] [6 regression] ICE on static thread_local member in class template
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Dec 2015 00:32:08 +0000
- Subject: [Bug c++/66944] [6 regression] ICE on static thread_local member in class template
- Auto-submitted: auto-generated
- References: <bug-66944-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66944
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-12-16
CC| |msebor at gcc dot gnu.org
Summary|static thread_local member |[6 regression] ICE on
|in class template may cause |static thread_local member
|compilation to fail |in class template
Ever confirmed|0 |1
Known to fail| |6.0
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.
Today's trunk crashes with the following ICE so making this a regression:
b.c:10:20: error: redefinition of âbool __tls_guardâ
thread_local Heavy A<T>::v;
^~~~
b.c:10:20: note: âbool __tls_guardâ previously declared here
b.c: In function âvoid __tls_init()â:
b.c:10:20: internal compiler error: in add_stmt, at cp/semantics.c:385
0x7a56c3 add_stmt(tree_node*)
/home/msebor/scm/fsf/gcc-svn/gcc/cp/semantics.c:385
0x6f7197 handle_tls_init
/home/msebor/scm/fsf/gcc-svn/gcc/cp/decl2.c:4360
0x6f7197 c_parse_final_cleanups()
/home/msebor/scm/fsf/gcc-svn/gcc/cp/decl2.c:4692
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.