This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11715] Error with template keyword in a non-dependent type
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2003 22:39:20 -0000
- Subject: [Bug c++/11715] Error with template keyword in a non-dependent type
- References: <20030729202158.11715.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11715
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |accepts-invalid
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-18 22:39 -------
Changing the keyword based on Christian's anlysis.
And giving the code that was talked about which is invalid:
struct A
{
template <typename> struct B {};
};
template <typename T> struct C
{
C() { A::B<T> b; }
};
C<void> c;