[Bug c++/15865] New: Invalid variable definition through the constructor name

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Tue Jun 8 02:11:00 GMT 2004


The following code should be rejected but it is not:

----------------------------------
struct A {};
A::A a;
----------------------------------

and the same applies for the template case:

----------------------------------
template <int dim> struct X {};
X<0>::X<0> x;
----------------------------------

-- 
           Summary: Invalid variable definition through the constructor name
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list