re PR c++/30536 (ICE with __thread and register)
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Feb 2007 12:23:18 +0000 (13:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 2 Feb 2007 12:23:18 +0000 (13:23 +0100)
commit3e66d096990519fcf0408a3bfc5b92e7d32b6462
treec51466cf854f17a26d8cffbec0e8ce95194d1e31
parent6b01cd54dd628d5f5b02c508032113d764759141
re PR c++/30536 (ICE with __thread and register)

PR c++/30536
* decl.c (grokdeclarator): If __thread is used together with
a storage class other than extern and static, clear thread_p
after issuing diagnostics and fall through to checking the
storage class.

* g++.dg/tls/diag-5.C: New test.

From-SVN: r121496
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tls/diag-5.C [new file with mode: 0644]