c++/7884: code compiled with optimization flag causes segmentation violation

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Sep 12 04:16:00 GMT 2002


The following reply was made to PR c++/7884; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: arnez@de.ibm.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/7884: code compiled with optimization flag causes segmentation   violation
Date: 12 Sep 2002 13:03:44 +0200

 arnez@de.ibm.com writes:
 
 | The following reply was made to PR c++/7884; it has been noted by GNATS.
 | 
 | From: arnez@de.ibm.com
 | To: aloeff@de.ibm.com, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
 |    gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
 | Cc:  
 | Subject: Re: c++/7884: code compiled with optimization flag causes segmentation 
 |  violation
 | Date: Thu, 12 Sep 2002 10:44:10 +0200
 | 
 |  I don't quite understand why (char *)foo is an rvalue.
 
 Because the C++ definition says so.
 
 |  Using a cast as an lvalue is listed as one of GCC's extensions.  
 
 That particular extension doesn't play well with the rest of the
 language and is causing more troubles than it solves any real
 problems. It may disappear in some future releases of GCC.
 
 -- Gaby
 
 



More information about the Gcc-prs mailing list