This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14566] 'template' disambiguator on base class gives a bad error message
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2004 01:41:09 -0000
- Subject: [Bug c++/14566] 'template' disambiguator on base class gives a bad error message
- References: <20040313064317.14566.ron_hylton@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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