public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "FBergemann at web dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57416] internal compiler error: in gimple_expand_cfg, at cfgexpand.c:4575
Date: Sat, 25 May 2013 19:55:00 -0000	[thread overview]
Message-ID: <bug-57416-4-LxGXqpDpAM@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-57416-4@http.gcc.gnu.org/bugzilla/>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4622 bytes --]

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57416

--- Comment #6 from Frank Bergemann <FBergemann at web dot de> ---
the error depends on optimization level.
-O0 has the problem
-O1, -02, -03 do not have the problem.
For those i get - even for the original buggy code:

make all 
Building file: ../main.cpp
Invoking: GCC C++ Compiler
/opt/gcc-4.8.0/bin/g++ -O1 -g3 -Wall -c -std=c++11 -MMD -MP -MF"main.d"
-MT"main.d" -o "main.o" "../main.cpp"
../main.cpp: In function ‘void func3(PARENTDATA&) [with PARENTDATA =
func2(PARENTDATA&) [with PARENTDATA = func1(PARENTDATA&) [with PARENTDATA =
Nothing]::Data]::Data]’:
../main.cpp:23:47: warning: ‘p_parent_data’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  std::cout << "parent_data.parent_data.x = "  <<
data.parent_data.parent_data.x << std::endl;
                                               ^
../main.cpp: In function ‘void func2(PARENTDATA&) [with PARENTDATA =
func1(PARENTDATA&) [with PARENTDATA = Nothing]::Data]’:
../main.cpp:29:9: warning: ‘p_parent_data’ is used uninitialized in this
function [-Wuninitialized]
Finished building: ../main.cpp

Building target: RetainRecallOld
Invoking: GCC C++ Linker
/opt/gcc-4.8.0/bin/g++  -o "RetainRecallOld"  ./main.o   
  struct Data
         ^
../main.cpp: In function ‘void func1(PARENTDATA&) [with PARENTDATA = Nothing]’:
../main.cpp:43:9: warning: ‘p_parent_data’ is used uninitialized in this
function [-Wuninitialized]
  struct Data
         ^
Finished building target: RetainRecallOld


**** Build Finished ****
>From gcc-bugs-return-423164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun May 26 01:35:57 2013
Return-Path: <gcc-bugs-return-423164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4982 invoked by alias); 26 May 2013 01:35:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 4911 invoked by uid 89); 26 May 2013 01:35:45 -0000
X-Spam-SWARE-Status: No, score=4.3 required=5.0 testsºYES_80,FSL_HELO_BARE_IP_2,IXHASH_X1,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RCVD_IN_SORBS_WEB,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.1
Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10)    by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 26 May 2013 01:35:44 +0000
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45059)	by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)	(Exim 4.71)	id 1UgPs6-0003C0-51	for bug-gcc@gnu.org; Sat, 25 May 2013 21:35:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)	id 1UgPrr-0005yX-82	for bug-gcc@gnu.org; Sat, 25 May 2013 21:35:33 -0400
Date: Sun, 26 May 2013 01:35:00 -0000
X-Spam-Report: 	*  0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server	*      [123.24.145.134 listed in dnsbl.sorbs.net]	*  1.4 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT	*      [123.24.145.134 listed in bb.barracudacentral.org]	*  3.3 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL	*      [123.24.145.134 listed in zen.spamhaus.org]	*  4.0 BAYES_99 BODY: Bayes spam probability is 99 to 100%	*      [score: 1.0000]	*  2.1 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2	*  2.3 FSL_HELO_BARE_IP_1 FSL_HELO_BARE_IP_1	*  2.5 RECEIVED_FROM_WINDOWS_HOST RECEIVED_FROM_WINDOWS_HOST	*  1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO	*  0.8 RDNS_NONE Delivered to internal network by a host with no rDNS	*  1.4 MISSING_DATE Missing Date: header
Received: from [123.24.145.134] (port(938 helo\x123.24.145.134)	by eggs.gnu.org with smtp (Exim 4.71)	id 1UgPrq-0005yM-7S	for bug-gcc@gnu.org; Sat, 25 May 2013 21:35:27 -0400
Received: from unknown (HELO localhost) (lakovdd@mporum.ru@102.63.70.77)	by 123.24.145.134 with ESMTPA; Sun, 26 May 2013 09:36:33 +0800
From: lakovdd@mporum.ru
To: bug-gcc@gnu.org
Subject: Stocks On The Move
X-detected-operating-system: by eggs.gnu.org: Windows XP
Message-ID: <E1UgPrq-0005yM-7S@eggs.gnu.org>
X-Received-From: 123.24.145.134
X-SW-Source: 2013-05/txt/msg01837.txt.bz2
Content-length: 158

Secure a quick 300% with BY_SD. Price at just less then 1 cent!!!
Just Now a half of a penny. Determined to explode. Put in your bid
on Tue, May 28, 2013.


  parent reply	other threads:[~2013-05-25 19:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25 17:02 [Bug c++/57416] New: " FBergemann at web dot de
2013-05-25 17:59 ` [Bug c++/57416] " daniel.kruegler at googlemail dot com
2013-05-25 18:24 ` FBergemann at web dot de
2013-05-25 18:26 ` daniel.kruegler at googlemail dot com
2013-05-25 19:55 ` FBergemann at web dot de [this message]
2013-05-27  8:27 ` rguenth at gcc dot gnu.org
2013-08-12 22:53 ` paolo.carlini at oracle dot com
2013-08-12 22:55 ` paolo.carlini at oracle dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-57416-4-LxGXqpDpAM@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).