This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22154] [DR 382] qualified names should allow typename keyword in front of it (even in non-templates)
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2005 14:58:20 -0000
- Subject: [Bug c++/22154] [DR 382] qualified names should allow typename keyword in front of it (even in non-templates)
- References: <20050623042717.22154.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-06-23 14:58 -------
Subject: Re: New: [DR 382] qualified names should allow typename keyword in front of it (even in non-templates)
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| The following should compile according to this DR report (but it is only in ready state so I am going to
| confirm it and then suspend it):
| class a {};
| typename ::a f();
|
| Also the following should not compile as a is not qualified then:
| class a {};
| typename a f();
If that is what the DR says, then the DR does not make any sense...
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22154