[llvm-bugs] [Bug 52042] New: program can't exe with some gcc and clang commands
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 2 07:28:00 PDT 2021
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: unassignedclangbugs at nondot.org
Reporter: rambhupal.bellam at blackfigtech.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211002/8623c396/attachment.html>
More information about the llvm-bugs
mailing list