https://bugs.llvm.org/show_bug.cgi?id=52042
Bug ID: 52042
Summary: program can't exe with some gcc and clang commands
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Created attachment 25317
--> https://bugs.llvm.org/attachment.cgi?id=25317&action=edit
program of file
open terminal
If I compile it with clang with the following command:
$ clang -std=c99 -Wdeclaration-after-statement hello.c hello1
it produce no warnings
if I execute same program with gcc with command
$ gcc -std=c99 , $ gcc -std=c90, and $ gcc -std=c89;
with eror like this
int i = 0;
^
1 warning generated.
$ clang -std=c90 -Wdeclaration-after-statement hello.c hello1
shows warning
int i = 0;
^
1 warning generated.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs