This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43343] New: -fsyntax-only rejects conforming code
- From: "stefano dot soffia at studenti dot univr dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2010 11:36:46 -0000
- Subject: [Bug c/43343] New: -fsyntax-only rejects conforming code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Here the steps to reproduce:
$ cat test.c
int main() { int i386; }
$ gcc -fsyntax-only test.c
test.c: In function ?main?:
test.c:1: error: expected identifier or ?(? before numeric constant
Also see this:
$ gcc -E test.c
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "test.c"
int main() { int 1; }
My version:
$ gcc --version
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Works on 4.1.3.
--
Summary: -fsyntax-only rejects conforming code
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stefano dot soffia at studenti dot univr dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43343