[LLVMbugs] [Bug 13597] New: certain __thread global variable with initializer is expected to be error.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 13 13:11:57 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13597

             Bug #: 13597
           Summary: certain __thread global variable with initializer is
                    expected to be error.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: fjahanian at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This is an old dejagnu test regarding __thread declarations on global variables
with initializers. Test expects
3 errors. But none is given by clang. With -Weverything clang issues couple
of warnings but they are not related to this specific issue.

extern __thread int i;
__thread int *p = &i;    /* { dg-error "dynamically initialized" } */

extern int f();
__thread int j = f();    /* { dg-error "dynamically initialized" } */

struct S
{
  S();
};
__thread S s;        /* { dg-error "" } two errors here */

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list