From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26194 invoked by alias); 11 Apr 2003 02:46:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26176 invoked by uid 71); 11 Apr 2003 02:46:00 -0000 Date: Fri, 11 Apr 2003 02:46:00 -0000 Message-ID: <20030411024600.26175.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/10373: Attempt to compile STLport causes segmentation fault Reply-To: "Giovanni Bajo" X-SW-Source: 2003-04/txt/msg00488.txt.bz2 List-Id: The following reply was made to PR c++/10373; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: Subject: Re: c++/10373: Attempt to compile STLport causes segmentation fault Date: Fri, 11 Apr 2003 04:44:38 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p r=10373 Redux: ------------------------------------------- namespace A {} namespace B {} namespace A { using namespace B; } namespace B { using namespace A; } void Foo(void) { using namespace A; } ------------------------------------------- pr10373.cpp: In function `void Foo()': pr10373.cpp:12: internal error: Segmentation fault Confirmed on 3.2 and 3.2.2. Worked on 2.95, and works on 3.3 20030401. So, it's a regression on the 3.2 branch only, and I'm not sure there is more time for patches for 3.2. If this works on 3.4 as well, the PR should be closed as 'fixed'. For the poster: the obvious workaround is to modify the function where the ICE happens so that it does not use an internal "using namespace std;". Just qualify everything needed with "std::", and the code should compile. You're welcome to submit such a patch to the STLPort guys as a workaround for GCC 3.2. Giovanni Bajo