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

           Summary: c89 code not parsed correctly
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


This code parses correctly in GCC but not in clang:

$ cat t.c
#include <stdio.h>

int main() {
  float f = 3.0 //*hello world*/1.2;

  printf("f == %f\n", f);
  return 0;
}
$ gcc -o t t.c -std=c89
$ ./t
f == 2.500000
$ clang -o t t.c -std=c89
t.c:6:3: error: parse error
  printf("f == %f\n", f);
  ^
1 diagnostic generated.


-- 
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