[Bug c++/17523] New: extra ';' warning on wrong line

timb at bluearc dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 16 16:06:00 GMT 2004


With -pedantic, this:
-----
struct S {
    S() {}
};

void f() {
    S s;
};
-----

produces:
test.cpp:2: error: extra `;'

The extra ';' is actually on line 7.

-- 
           Summary: extra ';' warning on wrong line
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: timb at bluearc dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-linux
  GCC host triplet: i486-linux
GCC target triplet: i486-linux


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



More information about the Gcc-bugs mailing list