OSDN Git Service

PR c++/30536
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Feb 2007 12:23:18 +0000 (12:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Feb 2007 12:23:18 +0000 (12:23 +0000)
commitd76c5c3cb20c328bc43d9014897606b09fbd3acd
treec51466cf854f17a26d8cffbec0e8ce95194d1e31
parent72dfb3f2bdf12e1be6f737c38362ba76f1c93991
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121496 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tls/diag-5.C [new file with mode: 0644]