http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47250

           Summary: ICE: in add_substitution, at cp/mangle.c:393 with
                    -fabi-version=5 -g
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz


--------- testcase.C --------
template < typename _Tp > class reference_wrapper
{
  operator _Tp & ();
};

reference_wrapper < int (...) const > i02;
-----------------------------
reduced from libstdc++-v3/testsuite/20_util/reference_wrapper/result_type.cc

Compiler output:
$ gcc -fabi-version=5 -g testcase.C 
testcase.C: In instantiation of 'reference_wrapper<_Tp>::operator _Tp&() [with
_Tp = int(...)__attribute__((const))]':
testcase.C:6:42:   instantiated from here
testcase.C:3:3: internal compiler error: in add_substitution, at
cp/mangle.c:393
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r168632 - crash
4.5 r168062 - OK (I think it doesn't support this ABI version)

Reply via email to