This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28311] Rejects template invocation with valid class



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]