This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13095] GCC accepts invalid using declaration
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2003 20:12:33 -0000
- Subject: [Bug c++/13095] GCC accepts invalid using declaration
- References: <20031118001326.13095.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2003-11-18 20:12 -------
The code seems illegal, indeed. Here's what icc says:
g/x> icc -c x.cc -Xc -ansi
x.cc(8): error: invalid base class
using B<T>::i;
^
x.cc(9): error: identifier "i" is undefined
int foo() { return i; }
^
compilation aborted for x.cc (code 2)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13095