public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837
@ 2006-08-12 21:55 dannysmith at users dot sourceforge dot net
2006-08-12 22:57 ` [Bug c++/28705] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2006-08-12 21:55 UTC (permalink / raw)
To: gcc-bugs
As reported at:
https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1539256&group_id=2435
This testcase:
=====================================================================
namespace N
{
struct s { };
template<typename T> struct tplt { void mf(const T &) {} };
tplt<s> &f();
}
template<typename T> bool g()
{
N::s *p = 0;
N::f().mf(s(p));
return true;
}
====================================================================
ICES with
cfg.C: In function 'bool g()':
cfg.C:12: internal compiler error: in type_dependent_expression_p, at
cp/pt.c:12837
This is with
GNU C++ version 4.2.0 20060808 (experimental) (mingw32)
It also ICES with gcc-3.4.5
Danny
--
Summary: ICE: in type_dependent_expression_p, at cp/pt.c:12837
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dannysmith at users dot sourceforge dot net
GCC build triplet: i386-pc-mingw32
GCC host triplet: i386-pc-mingw32
GCC target triplet: i386-pc-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
@ 2006-08-12 22:57 ` pinskia at gcc dot gnu dot org
2006-08-13 0:26 ` bangerth at dealii dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-12 22:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-12 22:57 -------
3.4.0 gave an error so this is a regression:
t.cc: In function `bool g()':
t.cc:11: error: no match for call to `(N::s) (N::s*&)'
I don't know if this is invalid code or not, but we should not be ICEing.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to fail| |4.1.0 3.4.5
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2006-08-12 22:57:01
date| |
Summary|ICE: in |[4.0/4.1/4.2 Regression]
|type_dependent_expression_p,|ICE: in
|at cp/pt.c:12837 |type_dependent_expression_p,
| |at cp/pt.c:12837
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
2006-08-12 22:57 ` [Bug c++/28705] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-08-13 0:26 ` bangerth at dealii dot org
2006-08-15 18:30 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bangerth at dealii dot org @ 2006-08-13 0:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bangerth at dealii dot org 2006-08-13 00:26 -------
The code is invalid (because there is no constructor s::s(s*)), but
we can make the code valid and still ICE:
--------------------------
namespace N
{
struct A { A(A*); };
void foo(const A &);
}
template<typename T> void g()
{
N::A *p;
N::foo(A(p));
}
-----------------
g/x> c++ -c x.cc
x.cc: In function 'void g()':
x.cc:10: internal compiler error: in type_dependent_expression_p, at
cp/pt.c:12603
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.suse.de/feedback> for instructions.
The point of the exercise is that in the template, we have A(p); since
p is of type N::A*, we need to look up A in namespace A as well, so the
conversion constructor A(p) should be valid, should yield an object of
type N::A, which can be bound to the argument of N::foo.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
Keywords| |ice-on-valid-code
Target Milestone|4.0.4 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
2006-08-12 22:57 ` [Bug c++/28705] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-08-13 0:26 ` bangerth at dealii dot org
@ 2006-08-15 18:30 ` pinskia at gcc dot gnu dot org
2006-08-20 22:38 ` mmitchel at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-15 18:30 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (2 preceding siblings ...)
2006-08-15 18:30 ` pinskia at gcc dot gnu dot org
@ 2006-08-20 22:38 ` mmitchel at gcc dot gnu dot org
2006-08-25 17:11 ` nathan at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:38 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (3 preceding siblings ...)
2006-08-20 22:38 ` mmitchel at gcc dot gnu dot org
@ 2006-08-25 17:11 ` nathan at gcc dot gnu dot org
2006-09-01 18:10 ` nathan at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: nathan at gcc dot gnu dot org @ 2006-08-25 17:11 UTC (permalink / raw)
To: gcc-bugs
--
nathan at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-08-12 22:57:01 |2006-08-25 17:11:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (5 preceding siblings ...)
2006-09-01 18:10 ` nathan at gcc dot gnu dot org
@ 2006-09-01 18:10 ` nathan at gcc dot gnu dot org
2006-09-03 6:41 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: nathan at gcc dot gnu dot org @ 2006-09-01 18:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from nathan at gcc dot gnu dot org 2006-09-01 18:10 -------
2006-09-01 Nathan Sidwell <nathan@codesourcery.com>
PR c++/28705
* semantics.c (finish_call_expr): Add assert.
* name-lookup.c (lookup_arg_dependent): Check we found an overload
or an object.
------- Comment #4 from nathan at gcc dot gnu dot org 2006-09-01 18:10 -------
Subject: Bug 28705
Author: nathan
Date: Fri Sep 1 18:10:17 2006
New Revision: 116638
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116638
Log:
cp/
PR c++/28705
* semantics.c (finish_call_expr): Add assert.
* name-lookup.c (lookup_arg_dependent): Check we found an overload
or an object.
testsuite/
PR c++/28705
* g++.dg/lookup/koenig5.C: New.
* g++.dg/template/crash56.C: New.
Added:
trunk/gcc/testsuite/g++.dg/lookup/koenig5.C
trunk/gcc/testsuite/g++.dg/template/crash56.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
nathan at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (4 preceding siblings ...)
2006-08-25 17:11 ` nathan at gcc dot gnu dot org
@ 2006-09-01 18:10 ` nathan at gcc dot gnu dot org
2006-09-01 18:10 ` nathan at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: nathan at gcc dot gnu dot org @ 2006-09-01 18:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from nathan at gcc dot gnu dot org 2006-09-01 18:10 -------
2006-09-01 Nathan Sidwell <nathan@codesourcery.com>
PR c++/28705
* semantics.c (finish_call_expr): Add assert.
* name-lookup.c (lookup_arg_dependent): Check we found an overload
or an object.
------- Comment #4 from nathan at gcc dot gnu dot org 2006-09-01 18:10 -------
Subject: Bug 28705
Author: nathan
Date: Fri Sep 1 18:10:17 2006
New Revision: 116638
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116638
Log:
cp/
PR c++/28705
* semantics.c (finish_call_expr): Add assert.
* name-lookup.c (lookup_arg_dependent): Check we found an overload
or an object.
testsuite/
PR c++/28705
* g++.dg/lookup/koenig5.C: New.
* g++.dg/template/crash56.C: New.
Added:
trunk/gcc/testsuite/g++.dg/lookup/koenig5.C
trunk/gcc/testsuite/g++.dg/template/crash56.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
nathan at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (6 preceding siblings ...)
2006-09-01 18:10 ` nathan at gcc dot gnu dot org
@ 2006-09-03 6:41 ` pinskia at gcc dot gnu dot org
2007-02-09 1:30 ` [Bug c++/28705] [4.1Regression] " reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-03 6:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-09-03 06:41 -------
*** Bug 28348 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.1Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (7 preceding siblings ...)
2006-09-03 6:41 ` pinskia at gcc dot gnu dot org
@ 2007-02-09 1:30 ` reichelt at gcc dot gnu dot org
2007-02-09 1:31 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-09 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from reichelt at gcc dot gnu dot org 2007-02-09 01:30 -------
This problem is a regression that is not fixed on the 4.1 branch yet.
Or is there a reason not to backport the fix?
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
Summary|[4.0/4.1/4.2 Regression] |[4.1Regression] ICE: in
|ICE: in |type_dependent_expression_p,
|type_dependent_expression_p,|at cp/pt.c:12837
|at cp/pt.c:12837 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.1Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (8 preceding siblings ...)
2007-02-09 1:30 ` [Bug c++/28705] [4.1Regression] " reichelt at gcc dot gnu dot org
@ 2007-02-09 1:31 ` reichelt at gcc dot gnu dot org
2007-02-14 9:02 ` [Bug c++/28705] [4.1 Regression] " mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-09 1:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from reichelt at gcc dot gnu dot org 2007-02-09 01:31 -------
*** Bug 30425 has been marked as a duplicate of this bug. ***
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.1 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (9 preceding siblings ...)
2007-02-09 1:31 ` reichelt at gcc dot gnu dot org
@ 2007-02-14 9:02 ` mmitchel at gcc dot gnu dot org
2007-04-28 10:44 ` tbm at cyrius dot com
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:02 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.1 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (10 preceding siblings ...)
2007-02-14 9:02 ` [Bug c++/28705] [4.1 Regression] " mmitchel at gcc dot gnu dot org
@ 2007-04-28 10:44 ` tbm at cyrius dot com
2007-04-30 8:37 ` nathan at gcc dot gnu dot org
2008-07-04 15:48 ` jsm28 at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: tbm at cyrius dot com @ 2007-04-28 10:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from tbm at cyrius dot com 2007-04-28 11:44 -------
Nathan, do you intend to backport this to 4.1?
--
tbm at cyrius dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.1 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (11 preceding siblings ...)
2007-04-28 10:44 ` tbm at cyrius dot com
@ 2007-04-30 8:37 ` nathan at gcc dot gnu dot org
2008-07-04 15:48 ` jsm28 at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: nathan at gcc dot gnu dot org @ 2007-04-30 8:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from nathan at gcc dot gnu dot org 2007-04-30 09:37 -------
I hadn't planned on doing so, but I think such a backport is safe.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28705] [4.1 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
` (12 preceding siblings ...)
2007-04-30 8:37 ` nathan at gcc dot gnu dot org
@ 2008-07-04 15:48 ` jsm28 at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jsm28 at gcc dot gnu dot org 2008-07-04 15:47 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Known to fail|4.1.0 3.4.5 |4.1.0 3.4.5 4.1.3
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-07-04 15:48 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-12 21:55 [Bug c++/28705] New: ICE: in type_dependent_expression_p, at cp/pt.c:12837 dannysmith at users dot sourceforge dot net
2006-08-12 22:57 ` [Bug c++/28705] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-08-13 0:26 ` bangerth at dealii dot org
2006-08-15 18:30 ` pinskia at gcc dot gnu dot org
2006-08-20 22:38 ` mmitchel at gcc dot gnu dot org
2006-08-25 17:11 ` nathan at gcc dot gnu dot org
2006-09-01 18:10 ` nathan at gcc dot gnu dot org
2006-09-01 18:10 ` nathan at gcc dot gnu dot org
2006-09-03 6:41 ` pinskia at gcc dot gnu dot org
2007-02-09 1:30 ` [Bug c++/28705] [4.1Regression] " reichelt at gcc dot gnu dot org
2007-02-09 1:31 ` reichelt at gcc dot gnu dot org
2007-02-14 9:02 ` [Bug c++/28705] [4.1 Regression] " mmitchel at gcc dot gnu dot org
2007-04-28 10:44 ` tbm at cyrius dot com
2007-04-30 8:37 ` nathan at gcc dot gnu dot org
2008-07-04 15:48 ` jsm28 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).