From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7077 invoked by alias); 27 Oct 2008 02:01:23 -0000 Received: (qmail 24470 invoked by uid 48); 27 Oct 2008 02:00:14 -0000 Date: Mon, 27 Oct 2008 02:01:00 -0000 Message-ID: <20081027020014.24469.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37920] ICE (segv) with typename typeof in local struct In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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 X-SW-Source: 2008-10/txt/msg01703.txt.bz2 ------- Comment #4 from pinskia at gcc dot gnu dot org 2008-10-27 02:00 ------- 3.3 did not ICE but did give the wrong error message: t.cc: In instantiation of `func2(T&) [with T = double]::ttt1': t.cc:10: instantiated from `void func2(T&) [with T = double]' t.cc:15: instantiated from here t.cc:8: error: `t' was not declared in this scope t.cc: In function `void func2(T&) [with T = double]': t.cc:15: instantiated from here t.cc:10: error: no matching function for call to `func2(T&) [with T = double]::ttt1::ttt1(double&)' t.cc:9: error: candidates are: func2(T&) [with T = double]::ttt1::ttt1(const func2(T&) [with T = double]::ttt1&) There is no use of t really at line 8 of my reduced testcase, only the use of the typedef. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37920