[LLVMbugs] [Bug 2412] New: GCC warning is a clang error
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jun 4 03:09:46 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2412
Summary: GCC warning is a clang error
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: isanbard at gmail.com
CC: llvmbugs at cs.uiuc.edu
For this code:
$ cat t.c
void bar() {
char ng;
welcome(ng);
}
void welcome(new_game)
char new_game;
{
foo(new_game);
}
clang produces this:
$ clang -emit-llvm-bc -x c -o t.o t.c
t.c:7:6: error: conflicting types for 'welcome'
void welcome(new_game)
^
t.c:4:3: error: previous implicit declaration is here
welcome(ng);
^
2 diagnostics generated.
While GCC produces this:
$ gcc -o t t.c -c
t.c:8: warning: conflicting types for ‘welcome’
t.c:4: warning: previous implicit declaration of ‘welcome’ was here
--
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