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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs