From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16987 invoked by alias); 26 Mar 2002 23:26:01 -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 16946 invoked by uid 71); 26 Mar 2002 23:26:01 -0000 Date: Tue, 26 Mar 2002 15:26:00 -0000 Message-ID: <20020326232601.16940.qmail@sources.redhat.com> To: mmitchel@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Ashif S. Harji" Subject: Re: c++/4884: g++ 3.0.2 problem with -fvolatile Reply-To: "Ashif S. Harji" X-SW-Source: 2002-03/txt/msg01013.txt.bz2 List-Id: The following reply was made to PR c++/4884; it has been noted by GNATS. From: "Ashif S. Harji" To: mmitchel@gcc.gnu.org, , , , , , Cc: Subject: Re: c++/4884: g++ 3.0.2 problem with -fvolatile Date: Tue, 26 Mar 2002 18:21:10 -0500 (EST) Thanks, for the prompt response. I downloaded the latest version from CVS. Unfortunately, there is still a problem in the build_op_delete_call function. The compilation of the following program fails with a segault when -fvolatile is used but not without. Note the addition of the constructor to class bar. 2>@awk[114]% more test3.cc class bar { public : bar() { } void * operator new ( unsigned int , void * storage ) { return (void *)1;} }; class foo { public: void mem ( ) { new ( 0 ) bar; } }; 2>@awk[115]% g++ test3.cc -c 2>@awk[116]% g++ test3.cc -fvolatile -c test3.cc: In member function `void foo::mem()': test3.cc:11: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. 2>@awk[117]% g++ -v Reading specs from ~/gccinstall/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs Configured with: ../gcc/configure --prefix=~/gccinstall --enable-languages=c,c++ : Thread model: single gcc version 3.2 20020326 (experimental) thanks, ashif. On 26 Mar 2002 mmitchel@gcc.gnu.org wrote: > Synopsis: g++ 3.0.2 problem with -fvolatile > > State-Changed-From-To: analyzed->closed > State-Changed-By: mmitchel > State-Changed-When: Tue Mar 26 10:38:32 2002 > State-Changed-Why: > Fixed. > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4884 >