[LLVMbugs] [Bug 13580] New: Problem in preprocessing pragma with block comments
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 11 12:07:14 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13580
Bug #: 13580
Summary: Problem in preprocessing pragma with block comments
Product: clang
Version: 3.1
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rahulsingh.mnnit at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9037
--> http://llvm.org/bugs/attachment.cgi?id=9037
The test case for the above bug
For the following code below,
while preprocessing #pragma , Clang fails to parse the block comment and leads
to parsing error.
extern void abort (void);
struct S
{
char a[3];
#pragma pack(1) /* A block comment
that ends on the next line. */
struct T
{
char b;
int c;
} d;
#pragma pack /*/ */ () // C++ comment
int e;
} s;
int
main ()
{
if (sizeof (int) == 4 && sizeof (s) != 12)
abort ();
return 0;
}
--
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