This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28311] Rejects template invocation with valid class
- 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: 8 Jul 2006 13:56:18 -0000
- Subject: [Bug c++/28311] Rejects template invocation with valid class
- References: <bug-28311-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-07-08 13:56 -------
Reduced testcase:
template<typename T>
class relationMixin {};
enum domainCode{
binaryFP,
control,
decimalFP,
logical,
pointer,
signedInt,
unsignedInt,
};
class pointer : public relationMixin< ::pointer> {
};
---------------------------------------
This is invalid code. By the way that enum comes from
/home/ivan/ootbc/include/opAttr.hh.
you can get the "correct" behavior by adding class in front of ::pointer.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28311