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
* [Bug c++/17154] [3.5 Regression] Using declaration of function name ignored inside partial specialization of template class
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 ` pinskia at gcc dot gnu dot org
2004-10-06 3:54 ` [Bug c++/17154] [4.0 " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-23 15:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-23 15:03 -------
: Search converges between 2004-07-14-trunk (#486) and 2004-07-16-trunk (#487).
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Known to fail| |3.5.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2004-08-23 15:03:59
date| |
Summary|Using declaration of |[3.5 Regression] Using
|function name ignored inside|declaration of function name
|partial specialization of |ignored inside partial
|template class |specialization of template
| |class
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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 ` pinskia at gcc dot gnu dot org
2004-10-06 10:34 ` giovannibajo at libero dot it
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-06 3:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-06 03:54 -------
I almost think it was caused by: <http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01444.html> but I
could be wrong.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel 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
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2004-10-06 10:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-10-06 10:34 -------
We don't support proper semantic in using declarations yet, but regressing on
that seems a bug anyway.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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
` (2 preceding siblings ...)
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
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-11-29 16:09 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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
` (3 preceding siblings ...)
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
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-03 10:55 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|nathan at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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
` (4 preceding siblings ...)
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
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-01-01 10:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-01-01 10:08 -------
Got it.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2004-10-05 04:42:55 |2005-01-01 10:08:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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
` (5 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-01-02 11:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-01-02 11:27 -------
Patch submitted:
http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00036.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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
` (6 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-06 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-06 16:04 -------
Subject: Bug 17154
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: lerdsuwa@gcc.gnu.org 2005-01-06 16:04:06
Modified files:
gcc/cp : ChangeLog search.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: using9.C
Log message:
PR c++/17154
* search.c (lookup_field_1): Handle using declaration in
class template partial specialization.
* g++.dg/template/using9.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4570&r2=1.4571
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/search.c.diff?cvsroot=gcc&r1=1.342&r2=1.343
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4855&r2=1.4856
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/using9.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17154
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/17154] [4.0 Regression] Using declaration of function name ignored inside partial specialization of template class
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
` (7 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-01-06 16:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-01-06 16:06 -------
Fixed in the mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
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).