This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/10126: ICE in convert_nontype_argument on using overload resolution in template args


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]