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++/14566] 'template' disambiguator on base class gives a bad error message


------- Additional Comments From giovannibajo at libero dot it  2004-03-15 02:02 -------
Yes, 'template' is disallowed outside of template definition, and the base 
class list is never part of the class definition. The rationale is that '<' 
can't be an operator< in that context.

Anyway, I think Jason would agree to allow it if not pedantic, and a better 
error message would surely be desirable.

I'm keeping this as an enhancement, and I will look into this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |giovannibajo at libero dot
                   |dot org                     |it
           Severity|normal                      |enhancement
             Status|NEW                         |ASSIGNED
           Keywords|rejects-valid               |diagnostic
      Known to work|3.3.1                       |
            Summary|[3.4/3.5 Regression]        |'template' disambiguator on
                   |'template' disambiguator    |base class gives a bad error
                   |rejected on base class      |message
   Target Milestone|3.4.1                       |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14566


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