This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30536] [4.1/4.2/4.3 regression] ICE with __thread and register
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2007 12:23:31 -0000
- Subject: [Bug c++/30536] [4.1/4.2/4.3 regression] ICE with __thread and register
- References: <bug-30536-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2007-02-02 12:23 -------
Subject: Bug 30536
Author: jakub
Date: Fri Feb 2 12:23:18 2007
New Revision: 121496
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121496
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/tls/diag-5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30536