public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17154] New: Using declaration of function name ignored inside partial specialization of template class
@ 2004-08-23 14:50 stefaandr at hotmail dot com
  2004-08-23 15:04 ` [Bug c++/17154] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: stefaandr at hotmail dot com @ 2004-08-23 14:50 UTC (permalink / raw)
  To: gcc-bugs

This compiles with 3.4.1, but not with current cvs:

template <int numrows, class T> struct A { void test_A() {}; };
template <int numrows, class T> struct B {};
template <class T> struct B <3, T> : public A <3, T> {
	using A <3, T>::test_A;
	void test_B_spec() { test_A(); };
};


Reading specs from /esat/olympia/install/lib/gcc/i686-pc-linux-gnu/3.5.0/specs
Configured with: /esat/alexandria1/stefaan/src/gcc/main/configure
--prefix=/esat/olympia/install --program-suffix=-3.5 --enable-languages=c,c++
Thread model: posix
gcc version 3.5.0 20040822 (experimental)
 /esat/olympia/install/libexec/gcc/i686-pc-linux-gnu/3.5.0/cc1plus -quiet -v
-D_GNU_SOURCE matrixtest.cpp -quiet -dumpbase matrixtest.cpp -mtune=pentiumpro
-auxbase-strip matrixtest.o -version -o /tmp/ccD3ifGt.s
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/esat/olympia/install/lib/gcc/i686-pc-linux-gnu/3.5.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /esat/olympia/install/lib/gcc/i686-pc-linux-gnu/3.5.0/../../../../include/c++/3.5.0
 /esat/olympia/install/lib/gcc/i686-pc-linux-gnu/3.5.0/../../../../include/c++/3.5.0/i686-pc-linux-gnu
 /esat/olympia/install/lib/gcc/i686-pc-linux-gnu/3.5.0/../../../../include/c++/3.5.0/backward
 /esat/olympia/install/include
 /esat/olympia/install/lib/gcc/i686-pc-linux-gnu/3.5.0/include
 /usr/include
End of search list.
GNU C++ version 3.5.0 20040822 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
matrixtest.cpp: In member function `void B<3, T>::test_B_spec()':
matrixtest.cpp:5: error: there are no arguments to `test_A' that depend on a
template parameter, so a declaration of `test_A' must be available
matrixtest.cpp:5: error: (if you use `-fpermissive', G++ will accept your code,
but allowing the use of an undeclared name is deprecated)

-- 
           Summary: Using declaration of function name ignored inside
                    partial specialization of template class
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stefaandr at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-01-06 16:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23 14:50 [Bug c++/17154] New: Using declaration of function name ignored inside partial specialization of template class stefaandr at hotmail dot com
2004-08-23 15:04 ` [Bug c++/17154] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-10-06  3:54 ` [Bug c++/17154] [4.0 " pinskia at gcc dot gnu dot org
2004-10-06 10:34 ` giovannibajo at libero dot it
2004-11-29 16:09 ` nathan at gcc dot gnu dot org
2004-12-03 10:55 ` nathan at gcc dot gnu dot org
2005-01-01 10:08 ` lerdsuwa at gcc dot gnu dot org
2005-01-02 11:27 ` lerdsuwa at gcc dot gnu dot org
2005-01-06 16:04 ` cvs-commit at gcc dot gnu dot org
2005-01-06 16:06 ` lerdsuwa at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).