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]

Re: Dependent base class and CVS head


On Tuesday, Jul 15, 2003, at 16:25 US/Eastern, Roberto Bagnara wrote:
The attached snippet is compiled fine (in the respective
"pedantic" modes) by G++ 3.3, by Comeau C++ 4.3.0.1,
and by the latest patch version of Intel's C++ compiler 7.1.
However G++ "gcc version 3.4 20030714 (experimental)"
gives

test2.cc: In member function `void D<T>::foo()':
test2.cc:16: error: `i' undeclared (first use this function)
test2.cc:16: error: (Each undeclared identifier is reported only once for each
function it appears in.)
test2.cc:17: error: there are no arguments to `bar' that depend on a template
parameter, so a declaration of `bar' must be available
test2.cc:17: error: (if you use `-fpermissive', G++ will accept your code, but
allowing the use of an undeclared name is deprecated)


Who is right?

GCC is wrong see PR11467, http://gcc.gnu.org/PR11467.


Thanks,
Andrew Pinski


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