This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/43343] New: -fsyntax-only rejects conforming code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]