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

bangerth@dealii.org bangerth@dealii.org
Tue Mar 18 00:46:00 GMT 2003


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



More information about the Gcc-prs mailing list