public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21783] New: No typedef required when type use in a function
@ 2005-05-27 14:40 florent dot gallet at orange dot fr
2005-06-07 19:07 ` [Bug c++/21783] [DR 409] Typename for required for qualified name? reichelt at gcc dot gnu dot org
0 siblings, 1 reply; 3+ messages in thread
From: florent dot gallet at orange dot fr @ 2005-05-27 14:40 UTC (permalink / raw)
To: gcc-bugs
template<class T> struct A {
typedef int B;
void f(typename A::B); // illformed: typename required before A::B
A::B b; // ok error detected
};
It's in the DRAFT: 25 November 1997
14.6 Name resolution
I don't know if that changed.
If someone could confirm.
--
Summary: No typedef required when type use in a function
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: florent dot gallet at orange dot fr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21783
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21783] [DR 409] Typename for required for qualified name?
2005-05-27 14:40 [Bug c++/21783] New: No typedef required when type use in a function florent dot gallet at orange dot fr
@ 2005-06-07 19:07 ` reichelt at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-07 19:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-06-07 19:07 -------
> There is a DR and surely another bug report about this. It's uncertain whether
> typename is needed to disambiguate a qualified name where the scope is the
> injected class name (which always refers to the current instantiation).
You're right Giovanni, it's DR 409.
The proposed solution is to not require the "typename".
But then we'd also have a bug, because GCC had to accept the declaration
A::B b;
So with either outcome of the DR, we'll have to change the compiler.
Let's suspend it until the DR is solved.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
Summary|No typename required when |[DR 409] Typename for
|type use in a function |required for qualified name?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21783
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-08 4:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-21783-9140@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:30 ` [Bug c++/21783] [DR 409] Typename for required for qualified name? jason at gcc dot gnu dot org
2009-11-08 4:07 ` jason at gcc dot gnu dot org
2005-05-27 14:40 [Bug c++/21783] New: No typedef required when type use in a function florent dot gallet at orange dot fr
2005-06-07 19:07 ` [Bug c++/21783] [DR 409] Typename for required for qualified name? reichelt at gcc dot gnu dot org
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).