This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unreviewed C++ patch


"Giovanni Bajo" <giovannibajo@libero.it> writes:

| Hello,
| 
| I posted this patch in April and forgot about it myself after it went
| unreviewed:
| 
| [PR7841] Fix invalid name of constructor
| http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01197.html

Since you detect the problem and know about what is going on, the
error message 

  error: invalid use of argument list for a constructor in a qualified name

is a bit unclear.  What about

  error: invalid use of constructor 'X<dim>::X' as a template

?

We should also reject the follwoing

    X<dim>::X<dim>  x;

and

   struct A { };

   A::A a;

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]