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++/14403] New: Syntax error befor `;' reported where there is no semicolon


G++ hallucinates and imagines a semicolon on line 2
although there is none:

% cat wrong-syntax-error.cpp
struct foo {
  foo() : f[ 0 ]( 0 ) {}
  int f[ 1 ] ;
} ;

% g++ -c wrong-syntax-error.cpp 
wrong-syntax-error.cpp: In constructor `foo::foo()':
wrong-syntax-error.cpp:2: error: parse error before `;' token
% g++ (GCC) 3.3.1 (SuSE Linux)

-- 
           Summary: Syntax error befor `;' reported where there is no
                    semicolon
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gwesp at flyelite dot ch
                CC: gcc-bugs at gcc dot gnu dot org,gwesp at flyelite dot ch
  GCC host triplet: Suse Linux 9.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14403


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