[Bug c++/19450] __thread static class members

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 9 21:44:00 GMT 2005



------- Comment #7 from jakub at gcc dot gnu dot org  2005-11-09 21:44 -------
Subject: Bug 19450

Author: jakub
Date: Wed Nov  9 21:44:36 2005
New Revision: 106710

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106710
Log:
        PR c++/19450
        * decl.c (redeclaration_error_message): Issue diagnostics about
        olddecl and newdecl disagreement on __thread property.
        (grokdeclarator): Set DECL_THREAD_LOCAL on class static variables.

        * g++.dg/tls/diag-3.C: New test.
        * g++.dg/tls/diag-4.C: New test.
        * g++.dg/tls/static-1.C: New test.
        * g++.dg/tls/static-1a.cc: New file.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/tls/diag-3.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/tls/diag-4.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/tls/static-1.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/tls/static-1a.cc
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/decl.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19450



More information about the Gcc-bugs mailing list