[Bug c++/13095] GCC accepts invalid using declaration

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 18 20:12:00 GMT 2003


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



More information about the Gcc-bugs mailing list