This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10126: ICE in convert_nontype_argument on using overload resolution in template args
- From: bangerth at dealii dot org
- To: Marco dot Franzen at bigfoot dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 18 Mar 2003 00:46:18 -0000
- Subject: Re: c++/10126: ICE in convert_nontype_argument on using overload resolution in template args
- Reply-to: bangerth at dealii dot org, Marco dot Franzen at bigfoot dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: ICE on template code
New Synopsis: ICE in convert_nontype_argument on using overload resolution in template args
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Mar 18 00:46:18 2003
State-Changed-Why:
Confirmed:
-------------------
struct B {
int I () const;
int I ();
};
struct D : B {};
template <int (D::*fun)() const> int Get();
int main () {
Get<&B::I>();
}
-----------------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In function `int main()':
x.cc:11: internal compiler error: in convert_nontype_argument, at cp/pt.c:3313
This never worked, 2.95 went into a memory hungry infinite
loop, later versions ICEd.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10126