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-16 01:41 -------
(In reply to comment #5)

> In the following test case I receive an error message saying the use of the 
> template disambiguator is required on the base of B::X.

This testcase is actually more interesting because it shows a real regression 
(valid code which is not accepted anymore by GCC). The diagnostic suggestion is 
wrong in this context, and the fix is obviously changing GCC to accept the code.

So, we keep both the rejects-valid and the insufficient diagnostic for this PR.

> Both Comeau C++ 4.3.3 and Intel Windows Compiler 8.0 accept the template 
> disambiguator on base classes in all cases I have tried.

For this specific case, the EDG frontend (which is behind both the compiler you 
mentioned) is not a good test because it is very very loosy wrt both 'typename' 
and 'template', for instance you can mostly omit them and the code will still 
compile.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |critical
           Keywords|                            |rejects-valid
      Known to work|                            |3.3.3
   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]