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.