public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18407] New: [Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c)
@ 2004-11-09 18:45 SWElef at post dot sk
2004-11-09 19:10 ` [Bug c++/18407] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: SWElef at post dot sk @ 2004-11-09 18:45 UTC (permalink / raw)
To: gcc-bugs
ICE in g++ 3.4.0 (cygwin) and 3.4.3 ("GNU C++ version 3.4.3 (i686-pc-cygwin)").
OK for g++ 3.3.1 ("GNU C++ version 3.3.1 (mingw special 20030804-1) (mingw32)"
and "GNU C++ version 3.3.1 (cygming special) (i686-pc-cygwin)").
Test case (legal code!):
template <typename Class>
struct the_base{
template <void (Class::*Fn)()> void foo() { }
};
template <typename T>
struct derivedT: the_base<derivedT<T> > {
typedef the_base<derivedT<T> > parent;
void ice(){
this->parent::template foo< &derivedT<T>::ice>();
}
};
int main() {
derivedT<int> dT;
dT.ice();
}
Output (command line: "c++ -v gccfail.cpp"):
...
GNU C++ version 3.4.3 (i686-pc-cygwin)
compiled by GNU C version 3.4.0.
...
gccfail.cpp: In member function `void derivedT<T>::ice() [with T = int]':
gccfail.cpp:16: instantiated from here
gccfail.cpp:10: internal compiler error: in build_base_path, at cp/class.c:275
...
Regards,
Vladimir Marko
--
Summary: [Regression] ICE with mem-fun-ptr as template parameter
for nested function template (build_base_path,
cp/class.c)
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: SWElef at post dot sk
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18407
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18407] [3.4/4.0 Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c)
2004-11-09 18:45 [Bug c++/18407] New: [Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c) SWElef at post dot sk
@ 2004-11-09 19:10 ` pinskia at gcc dot gnu dot org
2004-11-12 19:18 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 19:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-09 19:10 -------
: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-trunk (#160).
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.4.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-11-09 19:10:02
date| |
Summary|[Regression] ICE with mem- |[3.4/4.0 Regression] ICE
|fun-ptr as template |with mem-fun-ptr as template
|parameter for nested |parameter for nested
|function template |function template
|(build_base_path, |(build_base_path,
|cp/class.c) |cp/class.c)
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18407
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18407] [3.4/4.0 Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c)
2004-11-09 18:45 [Bug c++/18407] New: [Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c) SWElef at post dot sk
2004-11-09 19:10 ` [Bug c++/18407] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-12 19:18 ` mmitchel at gcc dot gnu dot org
2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-12 19:18 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18407
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18407] [3.4/4.0 Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c)
2004-11-09 18:45 [Bug c++/18407] New: [Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c) SWElef at post dot sk
2004-11-09 19:10 ` [Bug c++/18407] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-12 19:18 ` mmitchel at gcc dot gnu dot org
@ 2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:58 ` mmitchel at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-12 21:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-12 21:47 -------
Subject: Bug 18407
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-11-12 21:47:13
Modified files:
gcc/cp : ChangeLog decl.c decl2.c parser.c pt.c tree.c
gcc/testsuite : ChangeLog
gcc/testsuite/g++.dg/ext: vla1.C vlm1.C
gcc/testsuite/g++.dg/template: crash2.C
Added files:
gcc/testsuite/g++.dg/parse: cond1.C
gcc/testsuite/g++.dg/template: array9.C call3.C ptrmem11.C
Log message:
PR c++/18389
* decl.c (start_decl): Make sure to set *pop_scope_p. Return
error_mark_node to indicate errors.
PR c++/18429
* parser.c (cp_parser_direct_declarator): Disallow non-constant
array bounds when not inside a function.
PR c++/18436
* pt.c (tsubst_copy_and_build): Do not do Koenig lookup when an
unqualified name resolves to a member function.
PR c++/18407
* pt.c (tsubst_copy_and_build): Handle qualified names used from a
derived class correctly.
* decl2.c (import_export_decl): Fix typo in comment.
* tree.c (pod_type_p): Likewise.
PR c++/18389
* g++.dg/parse/cond1.C: New test.
PR c++/18429
* g++.dg/template/array9.C: New test.
* g++.dg/ext/vla1.C: Adjust error messages.
* g++.dg/ext/vlm1.C: Likewise.
* g++.dg/template/crash2.C: Likewise.
PR c++/18436
* g++.dg/template/call3.C: New test.
PR c++/18407
* g++.dg/template/ptrmem11.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4480&r2=1.4481
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1326&r2=1.1327
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.756&r2=1.757
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.278&r2=1.279
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.944&r2=1.945
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&r1=1.418&r2=1.419
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4588&r2=1.4589
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/vla1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/vlm1.C.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/cond1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/array9.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/call3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ptrmem11.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash2.C.diff?cvsroot=gcc&r1=1.2&r2=1.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18407
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18407] [3.4/4.0 Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c)
2004-11-09 18:45 [Bug c++/18407] New: [Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c) SWElef at post dot sk
` (2 preceding siblings ...)
2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:58 ` mmitchel at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-12 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-12 21:57 -------
Subject: Bug 18407
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-11-12 21:57:31
Modified files:
gcc/cp : decl.c pt.c ChangeLog
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: cond1.C
gcc/testsuite/g++.dg/template: call3.C ptrmem11.C
Log message:
PR c++/18389
* decl.c (start_decl): Make sure to set *pop_scope_p. Return
error_mark_node to indicate errors.
PR c++/18436
* pt.c (tsubst_copy_and_build): Do not do Koenig lookup when an
unqualified name resolves to a member function.
PR c++/18407
* pt.c (tsubst_copy_and_build): Handle qualified names used from a
derived class correctly.
* decl2.c (import_export_decl): Fix typo in comment.
* tree.c (pod_type_p): Likewise.
PR c++/18389
* g++.dg/parse/cond1.C: New test.
PR c++/18436
* g++.dg/template/call3.C: New test.
PR c++/18407
* g++.dg/template/ptrmem11.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1174.2.27&r2=1.1174.2.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.45&r2=1.816.2.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.178&r2=1.3892.2.179
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.308&r2=1.3389.2.309
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/cond1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/call3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ptrmem11.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18407
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18407] [3.4/4.0 Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c)
2004-11-09 18:45 [Bug c++/18407] New: [Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c) SWElef at post dot sk
` (3 preceding siblings ...)
2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-12 21:58 ` mmitchel at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-12 21:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-11-12 21:58 -------
Fixed in GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18407
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-11-12 21:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 18:45 [Bug c++/18407] New: [Regression] ICE with mem-fun-ptr as template parameter for nested function template (build_base_path, cp/class.c) SWElef at post dot sk
2004-11-09 19:10 ` [Bug c++/18407] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-12 19:18 ` mmitchel at gcc dot gnu dot org
2004-11-12 21:47 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:57 ` cvs-commit at gcc dot gnu dot org
2004-11-12 21:58 ` mmitchel 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).