[Bug c++/40294] New: method definition can have the class scope multiple time

Woebbeking at web dot de gcc-bugzilla@gcc.gnu.org
Fri May 29 13:54:00 GMT 2009


Hi,

is it correct that

struct S
{
    S();
};

S::S::S::S::S()
{
}

int main()
{
    S s;
    return 0;
}

compiles? At least other compilers have problems with that.


Cheers,
André


-- 
           Summary: method definition can have the class scope multiple time
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Woebbeking at web dot de


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



More information about the Gcc-bugs mailing list