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]

[Bug c++/47250] New: ICE: in add_substitution, at cp/mangle.c:393 with -fabi-version=5 -g


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: unassigned@gcc.gnu.org
        ReportedBy: zsojka@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)


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