public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57427] New: ICE in gimplify_init_constructor
@ 2013-05-27 10:13 y@momonga-linux.org
  2013-05-29  9:00 ` [Bug middle-end/57427] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: y@momonga-linux.org @ 2013-05-27 10:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

            Bug ID: 57427
           Summary: ICE in gimplify_init_constructor
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: y@momonga-linux.org

I found ICE with the following code;

$ cat test.cpp
struct A {
  A();
};
static const struct {
  A a;
} b[3] = {
};

$ g++-4.8 -c bug.cpp
bug.cpp: In function ‘void __static_initialization_and_destruction_0(int,
int)’:
bug.cpp:7:1: internal compiler error: in gimplify_init_constructor, at
gimplify.c:4269
 };
 ^

$ g++-4.8 -v 
Using built-in specs.
COLLECT_GCC=g++-4.8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.0-7'
--with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --enable-objc-gc --enable-multiarch --with-arch-32=i586
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.0 (Debian 4.8.0-7) 

It also ices with the following GCCs;
- gcc version 4.8.1 20130523
- gcc version 4.7.4 20130504
>From gcc-bugs-return-423204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 27 10:15:09 2013
Return-Path: <gcc-bugs-return-423204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27775 invoked by alias); 27 May 2013 10:15:09 -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 27725 invoked by uid 48); 27 May 2013 10:15:05 -0000
From: "muhammad_bilal at mentor dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/57287] GCC 4.9.0 fails to build GDB on Ubuntu 12.04
Date: Mon, 27 May 2013 10:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: muhammad_bilal at mentor dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-57287-4-nu5Rczk7pf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57287-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57287-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-05/txt/msg01877.txt.bz2
Content-length: 1921

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

hmb <muhammad_bilal at mentor dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #12 from hmb <muhammad_bilal at mentor dot com> ---
I got enother error in gdb source code with same building step as I described
above:

/home/mbilal/gcc-svn/install/bin/gcc -save-temps -g -O2   -I. -I.././../src/gdb
-I.././../src/gdb/common -I.././../src/gdb/config
-DLOCALEDIR="\"/home/mbilal/gdb-git/gcc_install_bug_report/share/locale\""
-DHAVE_CONFIG_H -I.././../src/gdb/../include/opcode
-I.././../src/gdb/../opcodes/.. -I.././../src/gdb/../readline/.. -I../bfd
-I.././../src/gdb/../bfd -I.././../src/gdb/../include -I../libdecnumber
-I.././../src/gdb/../libdecnumber  -I.././../src/gdb/gnulib/import
-Ibuild-gnulib/import   -DTUI=1  -I/usr/include/python2.7
-I/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith
-Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wempty-body -Wformat-nonliteral -Werror -c -o value.o -MT value.o -MMD -MP -MF
.deps/value.Tpo .././../src/gdb/value.c
.././../src/gdb/value.c: In function ‘show_convenience’:
.././../src/gdb/value.c:2247:21: error: ‘buf’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
       TRY_CATCH (ex, RETURN_MASK_ERROR)
                     ^
cc1: all warnings being treated as errors
make[2]: *** [value.o] Error 1
make[2]: Leaving directory `/home/mbilal/gdb-git/gcc-obj_bug_report/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/mbilal/gdb-git/gcc-obj_bug_report'
make: *** [all] Error 2
>From gcc-bugs-return-423205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 27 10:18:08 2013
Return-Path: <gcc-bugs-return-423205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29488 invoked by alias); 27 May 2013 10:18:08 -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 29367 invoked by uid 48); 27 May 2013 10:17:58 -0000
From: "muhammad_bilal at mentor dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/57287] GCC 4.9.0 fails to build GDB on Ubuntu 12.04
Date: Mon, 27 May 2013 10:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: muhammad_bilal at mentor dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-57287-4-di8uKWFnSx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57287-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57287-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-05/txt/msg01878.txt.bz2
Content-length: 276

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW287

--- Comment #13 from hmb <muhammad_bilal at mentor dot com> ---
Created attachment 30201
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id0201&actioníit
preprocessed source code

Attaching the preprocessed source code


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/57427] ICE in gimplify_init_constructor
  2013-05-27 10:13 [Bug c++/57427] New: ICE in gimplify_init_constructor y@momonga-linux.org
@ 2013-05-29  9:00 ` mpolacek at gcc dot gnu.org
  2013-10-16  9:48 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-05-29  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-05-29
                 CC|                            |mpolacek at gcc dot gnu.org
          Component|c++                         |middle-end
   Target Milestone|---                         |4.8.2
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.0, 4.9.0

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/57427] ICE in gimplify_init_constructor
  2013-05-27 10:13 [Bug c++/57427] New: ICE in gimplify_init_constructor y@momonga-linux.org
  2013-05-29  9:00 ` [Bug middle-end/57427] " mpolacek at gcc dot gnu.org
@ 2013-10-16  9:48 ` jakub at gcc dot gnu.org
  2014-12-09 14:24 ` [Bug middle-end/57427] [4.8 Regression] " mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.2                       |4.8.3

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/57427] [4.8 Regression] ICE in gimplify_init_constructor
  2013-05-27 10:13 [Bug c++/57427] New: ICE in gimplify_init_constructor y@momonga-linux.org
  2013-05-29  9:00 ` [Bug middle-end/57427] " mpolacek at gcc dot gnu.org
  2013-10-16  9:48 ` jakub at gcc dot gnu.org
@ 2014-12-09 14:24 ` mpolacek at gcc dot gnu.org
  2015-06-22 14:22 ` rguenth at gcc dot gnu.org
  2015-06-23  8:43 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-12-09 14:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57427

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.9.3, 5.0
            Summary|ICE in                      |[4.8 Regression] ICE in
                   |gimplify_init_constructor   |gimplify_init_constructor
      Known to fail|4.9.0                       |

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
4.6, 4.9, 5 work; 4.7, 4.8 ICE.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/57427] [4.8 Regression] ICE in gimplify_init_constructor
  2013-05-27 10:13 [Bug c++/57427] New: ICE in gimplify_init_constructor y@momonga-linux.org
                   ` (2 preceding siblings ...)
  2014-12-09 14:24 ` [Bug middle-end/57427] [4.8 Regression] " mpolacek at gcc dot gnu.org
@ 2015-06-22 14:22 ` rguenth at gcc dot gnu.org
  2015-06-23  8:43 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-22 14:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57427

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.3                       |4.8.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/57427] [4.8 Regression] ICE in gimplify_init_constructor
  2013-05-27 10:13 [Bug c++/57427] New: ICE in gimplify_init_constructor y@momonga-linux.org
                   ` (3 preceding siblings ...)
  2015-06-22 14:22 ` rguenth at gcc dot gnu.org
@ 2015-06-23  8:43 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57427

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.8.5                       |4.9.0
      Known to fail|                            |4.8.5

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for 4.9.0.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-23  8:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-27 10:13 [Bug c++/57427] New: ICE in gimplify_init_constructor y@momonga-linux.org
2013-05-29  9:00 ` [Bug middle-end/57427] " mpolacek at gcc dot gnu.org
2013-10-16  9:48 ` jakub at gcc dot gnu.org
2014-12-09 14:24 ` [Bug middle-end/57427] [4.8 Regression] " mpolacek at gcc dot gnu.org
2015-06-22 14:22 ` rguenth at gcc dot gnu.org
2015-06-23  8:43 ` rguenth at gcc dot gnu.org

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).