From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13647 invoked by alias); 12 Nov 2004 08:43:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13442 invoked by uid 48); 12 Nov 2004 08:42:47 -0000 Date: Fri, 12 Nov 2004 08:43:00 -0000 From: "jens dot maurer at gmx dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20041112084234.18445.jens.maurer@gmx.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/18445] New: ice during overload resolution in template instantiation X-Bugzilla-Reason: CC X-SW-Source: 2004-11/txt/msg01503.txt.bz2 List-Id: This (invalid) code gives a nice error message with gcc 3.3.3, but fails with an ICE on 3.4.3. Using the correct ex.what() syntax fixes the problem. #include #include template void f() { try { } catch(std::exception& ex) { std::cout << ex.what << std::endl; } } int main() { f(); } t.cc: In function `void f()': t.cc:10: internal compiler error: in resolve_overloaded_unification, at cp/pt.c:9331 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Summary: ice during overload resolution in template instantiation Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jens dot maurer at gmx dot net CC: gcc-bugs at gcc dot gnu dot org,niemayer at isg dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18445