From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26273 invoked by alias); 11 Jul 2003 20:44: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 26264 invoked by uid 48); 11 Jul 2003 20:44:04 -0000 Date: Fri, 11 Jul 2003 20:44:00 -0000 Message-ID: <20030711204404.26263.qmail@sources.redhat.com> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030711191311.11503.zlomek@gcc.gnu.org> References: <20030711191311.11503.zlomek@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11503] [3.3/3.4 Regression] segfault when instantiating template with ADDR_EXPR X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg01287.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11503 ------- Additional Comments From bangerth at dealii dot org 2003-07-11 20:44 ------- I can't compress the testcase much more: ------------------------------ struct x { int foo () {} }; template struct vector { T& bar () {} }; template struct y { typedef struct { x t; } s; vector array; int foo () { return array.bar().t.foo(); } }; int i = y().foo (); ------------------------------------ The most interesting observation is probably that if I replace the typedef struct {...} s; stuff with simply struct s {...}; then the ICE goes away. So maybe it has to do with a bad interaction of templates and anonymous struct.s W.