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++/13095] GCC accepts invalid using declaration


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


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