public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10126: ICE in convert_nontype_argument on using overload resolution in template args
@ 2003-03-18  1:56 Giovanni Bajo
  0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Bajo @ 2003-03-18  1:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/10126; it has been noted by GNATS.

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>,
	<Marco.Franzen@bigfoot.com>
Cc:  
Subject: Re: c++/10126: ICE in convert_nontype_argument on using overload resolution in template args
Date: Tue, 18 Mar 2003 02:50:18 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=10126
 
 I wonder if the code is legal. Comeau refuses it, VC7.1 eats it. I am very
 fuzzy about member functions as template parameters.
 
 Giovanni Bajo
 


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

* Re: c++/10126: ICE in convert_nontype_argument on using overload resolution in template args
@ 2003-03-18  0:46 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-03-18  0:46 UTC (permalink / raw)
  To: Marco.Franzen, gcc-bugs, gcc-prs, nobody

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


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

end of thread, other threads:[~2003-03-18  1:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-18  1:56 c++/10126: ICE in convert_nontype_argument on using overload resolution in template args Giovanni Bajo
  -- strict thread matches above, loose matches on Subject: below --
2003-03-18  0:46 bangerth

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).