[Bug c++/11552] New: [3.4 regression] g++ accepts class defined in return type

jason at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 16 22:26:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] g++ accepts class defined in return
                    type
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jason at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org

We no longer give an error for this testcase.  The "*" is necessary to subvert
the "missing semicolon" error.

struct A { } * f () { return 0; }



More information about the Gcc-bugs mailing list