* Unreviewed C++ patch
@ 2004-06-06 3:59 Giovanni Bajo
2004-06-06 7:48 ` Gabriel Dos Reis
2004-06-07 16:48 ` Mark Mitchell
0 siblings, 2 replies; 8+ messages in thread
From: Giovanni Bajo @ 2004-06-06 3:59 UTC (permalink / raw)
To: gcc-patches; +Cc: Jason Merrill, Mark Mitchell
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
Thank you,
Giovanni Bajo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unreviewed C++ patch
2004-06-06 3:59 Unreviewed C++ patch Giovanni Bajo
@ 2004-06-06 7:48 ` Gabriel Dos Reis
2004-06-08 5:50 ` Giovanni Bajo
2004-06-07 16:48 ` Mark Mitchell
1 sibling, 1 reply; 8+ messages in thread
From: Gabriel Dos Reis @ 2004-06-06 7:48 UTC (permalink / raw)
To: Giovanni Bajo; +Cc: gcc-patches, Jason Merrill, Mark Mitchell
"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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unreviewed C++ patch
2004-06-06 3:59 Unreviewed C++ patch Giovanni Bajo
2004-06-06 7:48 ` Gabriel Dos Reis
@ 2004-06-07 16:48 ` Mark Mitchell
1 sibling, 0 replies; 8+ messages in thread
From: Mark Mitchell @ 2004-06-07 16:48 UTC (permalink / raw)
To: Giovanni Bajo; +Cc: gcc-patches, Jason Merrill
Giovanni Bajo wrote:
>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
>
OK.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unreviewed C++ patch
2004-06-06 7:48 ` Gabriel Dos Reis
@ 2004-06-08 5:50 ` Giovanni Bajo
2004-06-09 7:58 ` Gabriel Dos Reis
0 siblings, 1 reply; 8+ messages in thread
From: Giovanni Bajo @ 2004-06-08 5:50 UTC (permalink / raw)
To: Gabriel Dos Reis; +Cc: gcc-patches, Jason Merrill, Mark Mitchell
Gabriel Dos Reis wrote:
>> [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
>
> ?
Sure, but I kept the inform() so I don't name the expression in the diagnostic.
I'm committing this (given also Mark's approval):
error ("invalid use of constructor as a template");
inform ("use `%T::%D' instead of `%T::%T' to name the "
"constructor in a qualified name", class_type,
DECL_NAME (TYPE_TI_TEMPLATE (class_type)),
class_type, class_type);
> We should also reject the follwoing
>
> X<dim>::X<dim> x;
>
> and
>
> struct A { };
> A::A a;
This is different though. I filed PR 15865 to track this.
Giovanni Bajo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unreviewed C++ patch
2004-06-08 5:50 ` Giovanni Bajo
@ 2004-06-09 7:58 ` Gabriel Dos Reis
0 siblings, 0 replies; 8+ messages in thread
From: Gabriel Dos Reis @ 2004-06-09 7:58 UTC (permalink / raw)
To: Giovanni Bajo; +Cc: Gabriel Dos Reis, gcc-patches, Jason Merrill, Mark Mitchell
You Wrote Giovanni Bajo
> Gabriel Dos Reis wrote:
>
>>> [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
>>
>> ?
>
> Sure, but I kept the inform() so I don't name the expression in the
> diagnostic.
> I'm committing this (given also Mark's approval):
>
> error ("invalid use of constructor as a template");
> inform ("use `%T::%D' instead of `%T::%T' to name the "
> "constructor in a qualified name", class_type,
> DECL_NAME (TYPE_TI_TEMPLATE (class_type)),
> class_type, class_type);
That is good.
>
>> We should also reject the follwoing
>>
>> X<dim>::X<dim> x;
>>
>> and
>>
>> struct A { };
>> A::A a;
>
> This is different though. I filed PR 15865 to track this.
OK. I think I filled (some time ago) a PR about GCC not handling
injected class-name correctly. They are same.
Thanks,
^ permalink raw reply [flat|nested] 8+ messages in thread
* Unreviewed C++ patch
2004-02-09 4:56 Giovanni Bajo
@ 2004-02-21 13:45 ` Giovanni Bajo
0 siblings, 0 replies; 8+ messages in thread
From: Giovanni Bajo @ 2004-02-21 13:45 UTC (permalink / raw)
To: gcc-patches
Hello,
this patch is still unreviewed:
TC1 testsuite (part 2/N)
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg00000.html
Thanks
Giovanni Bajo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Unreviewed C++ patch
@ 2004-02-09 4:56 Giovanni Bajo
2004-02-21 13:45 ` Giovanni Bajo
0 siblings, 1 reply; 8+ messages in thread
From: Giovanni Bajo @ 2004-02-09 4:56 UTC (permalink / raw)
To: gcc-patches
Hello,
this patch is still unreviewed:
TC1 testsuite (part 2/N)
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg00000.html
Thanks
Giovanni Bajo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Unreviewed C++ patch
@ 2004-01-30 10:48 Giovanni Bajo
0 siblings, 0 replies; 8+ messages in thread
From: Giovanni Bajo @ 2004-01-30 10:48 UTC (permalink / raw)
To: gcc-patches
Hello,
[PR13813] Incomplete type for member variables of class templates
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02443.html
Thanks in advance
Giovanni Bajo
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-06-09 5:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-06 3:59 Unreviewed C++ patch Giovanni Bajo
2004-06-06 7:48 ` Gabriel Dos Reis
2004-06-08 5:50 ` Giovanni Bajo
2004-06-09 7:58 ` Gabriel Dos Reis
2004-06-07 16:48 ` Mark Mitchell
-- strict thread matches above, loose matches on Subject: below --
2004-02-09 4:56 Giovanni Bajo
2004-02-21 13:45 ` Giovanni Bajo
2004-01-30 10:48 Giovanni Bajo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).