From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3842 invoked by alias); 26 Apr 2013 20:47:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3813 invoked by uid 48); 26 Apr 2013 20:47:53 -0000 From: "madars+gccbug at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57086] New: Internal compiler error: Error reporting routines re-entered. Date: Fri, 26 Apr 2013 20:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: madars+gccbug at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg02206.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57086 Bug #: 57086 Summary: Internal compiler error: Error reporting routines re-entered. Classification: Unclassified Product: gcc Version: 4.7.3 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: madars+gccbug@gmail.com The code is obviously wrong, but it shouldn't give ICE. $ g++ --version | head -1 g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 $ g++ -std=3Dc++11 crash.cpp=20 crash.cpp:15:35: error: =E2=80=98undef_class=E2=80=99 was not declared in t= his scope crash.cpp:15:46: error: template argument 1 is invalid crash.cpp: In member function =E2=80=98void p::f2(int)=E2=80=99: crash.cpp:17:23: error: no matching function for call to =E2=80=98begin(int= &)=E2=80=99 crash.cpp:17:23: note: candidates are: In file included from /usr/include/c++/4.7/vector:67:0, from crash.cpp:1: /usr/include/c++/4.7/bits/range_access.h:87:5: note: template _Tp* std::begin(_Tp (&)[_Nm]) /usr/include/c++/4.7/bits/range_access.h:87:5: note: template argument deduction/substitution failed: crash.cpp:17:23: note: mismatched types =E2=80=98_Tp [_Nm]=E2=80=99 and = =E2=80=98int=E2=80=99 In file included from /usr/include/c++/4.7/vector:67:0, from crash.cpp:1: /usr/include/c++/4.7/bits/range_access.h:58:5: note: template decltype (__cont.begin()) std::begin(const _Container&) /usr/include/c++/4.7/bits/range_access.h:58:5: note: template argument deduction/substitution failed: /usr/include/c++/4.7/bits/range_access.h: In substitution of =E2=80=98templ= ate decltype (__cont.begin()) std::begin(const _Container&) [with _Container =3D int]=E2=80=99: crash.cpp:17:23: required from here /usr/include/c++/4.7/bits/range_access.h:58:5: error: request for member =E2=80=98begin=E2=80=99 in =E2=80=98__cont=E2=80=99, which is of non-class = type =E2=80=98const int=E2=80=99 /usr/include/c++/4.7/bits/range_access.h:48:5: note: template decltype (__cont.begin()) std::begin(_Container&) /usr/include/c++/4.7/bits/range_access.h:48:5: note: template argument deduction/substitution failed: /usr/include/c++/4.7/bits/range_access.h: In substitution of =E2=80=98templ= ate decltype (__cont.begin()) std::begin(_Container&) [with _Contai= ner =3D int]=E2=80=99: crash.cpp:17:23: required from here /usr/include/c++/4.7/bits/range_access.h:48:5: error: request for member =E2=80=98begin=E2=80=99 in =E2=80=98__cont=E2=80=99, which is of non-class = type =E2=80=98int=E2=80=99 In file included from /usr/include/c++/4.7/bits/stl_vector.h:64:0, from /usr/include/c++/4.7/vector:65, from crash.cpp:1: /usr/include/c++/4.7/initializer_list:89:5: note: template const= expr const _Tp* std::begin(std::initializer_list<_Tp>) /usr/include/c++/4.7/initializer_list:89:5: note: template argument deduction/substitution failed: crash.cpp:17:23: note: mismatched types =E2=80=98std::initializer_list<_T= p>=E2=80=99 and =E2=80=98int=E2=80=99 crash.cpp:17:23: error: no matching function for call to =E2=80=98end(int&)= =E2=80=99 crash.cpp:17:23: note: candidates are: In file included from /usr/include/c++/4.7/vector:67:0, from crash.cpp:1: /usr/include/c++/4.7/bits/range_access.h:97:5: note: template _Tp* std::end(_Tp (&)[_Nm]) /usr/include/c++/4.7/bits/range_access.h:97:5: note: template argument deduction/substitution failed: crash.cpp:17:23: note: mismatched types =E2=80=98_Tp [_Nm]=E2=80=99 and = =E2=80=98int=E2=80=99 In file included from /usr/include/c++/4.7/vector:67:0, from crash.cpp:1: /usr/include/c++/4.7/bits/range_access.h:78:5: note: template decltype (__cont.end()) std::end(const _Container&) /usr/include/c++/4.7/bits/range_access.h:78:5: note: template argument deduction/substitution failed: /usr/include/c++/4.7/bits/range_access.h: In substitution of =E2=80=98templ= ate decltype (__cont.end()) std::end(const _Container&) [with _Container =3D int]=E2=80=99: crash.cpp:17:23: required from here /usr/include/c++/4.7/bits/range_access.h:78:5: error: request for member = =E2=80=98end=E2=80=99 in =E2=80=98__cont=E2=80=99, which is of non-class type =E2=80=98const int= =E2=80=99 /usr/include/c++/4.7/bits/range_access.h:68:5: note: template decltype (__cont.end()) std::end(_Container&) /usr/include/c++/4.7/bits/range_access.h:68:5: note: template argument deduction/substitution failed: /usr/include/c++/4.7/bits/range_access.h: In substitution of =E2=80=98templ= ate decltype (__cont.end()) std::end(_Container&) [with _Container = =3D int]=E2=80=99: crash.cpp:17:23: required from here /usr/include/c++/4.7/bits/range_access.h:68:5: error: request for member = =E2=80=98end=E2=80=99 in =E2=80=98__cont=E2=80=99, which is of non-class type =E2=80=98int=E2=80= =99 In file included from /usr/include/c++/4.7/bits/stl_vector.h:64:0, from /usr/include/c++/4.7/vector:65, from crash.cpp:1: /usr/include/c++/4.7/initializer_list:99:5: note: template const= expr const _Tp* std::end(std::initializer_list<_Tp>) /usr/include/c++/4.7/initializer_list:99:5: note: template argument deduction/substitution failed: crash.cpp:17:23: note: mismatched types =E2=80=98std::initializer_list<_T= p>=E2=80=99 and =E2=80=98int=E2=80=99 crash.cpp:17:23: error: unable to deduce =E2=80=98auto=E2=80=99 from =E2=80= =98=E2=80=99 In file included from /usr/include/c++/4.7/vector:65:0, from crash.cpp:1: /usr/include/c++/4.7/bits/stl_vector.h: In instantiation of =E2=80=98std::v= ector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp =3D v; _Alloc =3D std::allocator; std::vec= tor<_Tp, _Alloc>::reference =3D v&; std::vector<_Tp, _Alloc>::size_type =3D long uns= igned int]=E2=80=99: crash.cpp:11:37: required from here /usr/include/c++/4.7/bits/stl_vector.h:751:46: error: invalid use of incomp= lete type =E2=80=98class v=E2=80=99 crash.cpp:2:7: error: forward declaration of =E2=80=98class v=E2=80=99 =E2=80=98 Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccUpst6x.out file, please attach this = to your bugreport. >>From gcc-bugs-return-421062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Apr 26 20:48:27 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4620 invoked by alias); 26 Apr 2013 20:48:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4596 invoked by uid 48); 26 Apr 2013 20:48:24 -0000 From: "madars+gccbug at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57086] Internal compiler error: Error reporting routines re-entered. Date: Fri, 26 Apr 2013 20:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: madars+gccbug at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg02207.txt.bz2 Content-length: 237 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57086 --- Comment #1 from madars+gccbug at gmail dot com 2013-04-26 20:48:24 UTC --- Created attachment 29949 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29949 triggering code