The following invalid code is accepted by G++:

  void f() { typedef int & T; T(); }

Comeau 4.3.9 rejects the code with an "error: invalid type conversion"
diagnostic.


-- 
           Summary: Invalid argumentless functional explicit type conversion
                    to reference type not rejected
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bugzilla at contacts dot eelis dot net


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

Reply via email to