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

Reply via email to