public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56914] New: internal compiler error: Segmentation fault
@ 2013-04-11  0:57 vini.ipsmaker at gmail dot com
  2013-04-11  1:01 ` [Bug c++/56914] " vini.ipsmaker at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: vini.ipsmaker at gmail dot com @ 2013-04-11  0:57 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56914
           Summary: internal compiler error: Segmentation fault
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vini.ipsmaker@gmail.com


I tried to compile my code (and the code has a few bugs) and GCC segfault. It's
the first time this happen to me.

I use some experimental C++11 features. The command line argument is:
g++ main2.cpp -std=c++0x

The output is:
../main.cpp: In lambda function:
../main.cpp:17:22: internal compiler error: Segmentation fault
             QObject::connect(&req, &HttpServerResponse::end, []() {
                      ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.

My system is an i686 Linux (ArchLinux). The GCC was built with this command:
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/gcc

I've used C++11, Qt 5.0.1 and my open source project. What else do I need to
inform?


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

* [Bug c++/56914] internal compiler error: Segmentation fault
  2013-04-11  0:57 [Bug c++/56914] New: internal compiler error: Segmentation fault vini.ipsmaker at gmail dot com
@ 2013-04-11  1:01 ` vini.ipsmaker at gmail dot com
  2013-04-11  7:37 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vini.ipsmaker at gmail dot com @ 2013-04-11  1:01 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Vinícius dos Santos Oliveira <vini.ipsmaker at gmail dot com> 2013-04-11 01:01:55 UTC ---
Created attachment 29852
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29852
The preprocessed source file.
>From gcc-bugs-return-419735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 11 01:08:17 2013
Return-Path: <gcc-bugs-return-419735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19443 invoked by alias); 11 Apr 2013 01:08:17 -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 19197 invoked by uid 48); 11 Apr 2013 01:08:13 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56913] [C++11] SFINAE for ill-formed pointer-to-member operators with incompatible ref-qualifiers
Date: Thu, 11 Apr 2013 01:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: minor
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Status Last reconfirmed AssignedTo Ever Confirmed
Message-ID: <bug-56913-4-GiDyvXVXit@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56913-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-04/txt/msg00880.txt.bz2
Content-length: 670


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-04-11
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-04-11 01:08:13 UTC ---
Seems very easy.


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

* [Bug c++/56914] internal compiler error: Segmentation fault
  2013-04-11  0:57 [Bug c++/56914] New: internal compiler error: Segmentation fault vini.ipsmaker at gmail dot com
  2013-04-11  1:01 ` [Bug c++/56914] " vini.ipsmaker at gmail dot com
@ 2013-04-11  7:37 ` rguenth at gcc dot gnu.org
  2013-04-11  9:34 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-11  7:37 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-04-11
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-11 07:37:21 UTC ---
Confirmed.

../main.cpp: In lambda function:
../main.cpp:17:22: internal compiler error: Segmentation fault
0xc622d5 crash_signal
        /space/rguenther/src/svn/gcc-4_8-branch/gcc/toplev.c:332
0x6fda3f lookup_base(tree_node*, tree_node*, int, base_kind*, int)
        /space/rguenther/src/svn/gcc-4_8-branch/gcc/cp/search.c:199
0x70c31f finish_qualified_id_expr(tree_node*, tree_node*, bool, bool, bool,
bool)
        /space/rguenther/src/svn/gcc-4_8-branch/gcc/cp/semantics.c:1786
0x711b41 finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kind*,
bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int)
        /space/rguenther/src/svn/gcc-4_8-branch/gcc/cp/semantics.c:3348
0x67c172 cp_parser_primary_expression
        /space/rguenther/src/svn/gcc-4_8-branch/gcc/cp/parser.c:4394
0x67e7d1 cp_parser_postfix_expression
        /space/rguenther/src/svn/gcc-4_8-branch/gcc/cp/parser.c:5629
0x680876 cp_parser_unary_expression
        /space/rguenther/src/svn/gcc-4_8-branch/gcc/cp/parser.c:6685
0x6813d7 cp_parser_cast_expression


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

* [Bug c++/56914] internal compiler error: Segmentation fault
  2013-04-11  0:57 [Bug c++/56914] New: internal compiler error: Segmentation fault vini.ipsmaker at gmail dot com
  2013-04-11  1:01 ` [Bug c++/56914] " vini.ipsmaker at gmail dot com
  2013-04-11  7:37 ` rguenth at gcc dot gnu.org
@ 2013-04-11  9:34 ` paolo.carlini at oracle dot com
  2013-05-05 13:56 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-04-11  9:34 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-04-11 09:34:15 UTC ---
I can't reproduce the ICE this with current (r197743) mainline & branch (I'm
using x86_64 -m32), I can with 4.8.0.


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

* [Bug c++/56914] internal compiler error: Segmentation fault
  2013-04-11  0:57 [Bug c++/56914] New: internal compiler error: Segmentation fault vini.ipsmaker at gmail dot com
                   ` (2 preceding siblings ...)
  2013-04-11  9:34 ` paolo.carlini at oracle dot com
@ 2013-05-05 13:56 ` paolo.carlini at oracle dot com
  2013-05-05 18:32 ` vini.ipsmaker at gmail dot com
  2013-05-05 23:31 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-05 13:56 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-05 13:56:41 UTC ---
Please somebody confirm that the issue is actually fixed on i686 proper too.


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

* [Bug c++/56914] internal compiler error: Segmentation fault
  2013-04-11  0:57 [Bug c++/56914] New: internal compiler error: Segmentation fault vini.ipsmaker at gmail dot com
                   ` (3 preceding siblings ...)
  2013-05-05 13:56 ` paolo.carlini at oracle dot com
@ 2013-05-05 18:32 ` vini.ipsmaker at gmail dot com
  2013-05-05 23:31 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: vini.ipsmaker at gmail dot com @ 2013-05-05 18:32 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Vinícius dos Santos Oliveira <vini.ipsmaker at gmail dot com> 2013-05-05 18:32:14 UTC ---
I tried to reproduce the bug today and nothing happened. I'm still using GCC
4.8.0, but my system changed a lot (ArchLinux is a rolling release distro) and
I can't say what is the difference that could be the bug's reason.
>From gcc-bugs-return-421652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun May 05 18:34:52 2013
Return-Path: <gcc-bugs-return-421652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18544 invoked by alias); 5 May 2013 18:34:52 -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 18486 invoked by uid 48); 5 May 2013 18:34:47 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57175] NRVO and alignment
Date: Sun, 05 May 2013 18:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Status Last reconfirmed CC Ever Confirmed
Message-ID: <bug-57175-4-EMwlICiPi5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57175-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57175-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-05/txt/msg00325.txt.bz2
Content-length: 1269


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-05-05
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
     Ever Confirmed|0                           |1

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2013-05-05 18:34:47 UTC ---
> in typeck.c (check_return_expr), before applying the NRV optimization, there
> is a check: DECL_ALIGN (retval) >= DECL_ALIGN (result)
>
> It seems to me that this check is backwards and should be <= instead (compare
> with tree_nrv in tree-nrv.c which seems correct).

FWIW the Ada compiler also has the NRVO and the check is as in tree-nrv.c:

/* Return true if RET_VAL can be used as a Named Return Value for the
   anonymous return object RET_OBJ.  */

static bool
return_value_ok_for_nrv_p (tree ret_obj, tree ret_val)
{
[...]
  if (ret_obj && DECL_ALIGN (ret_val) > DECL_ALIGN (ret_obj))
    return false;


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

* [Bug c++/56914] internal compiler error: Segmentation fault
  2013-04-11  0:57 [Bug c++/56914] New: internal compiler error: Segmentation fault vini.ipsmaker at gmail dot com
                   ` (4 preceding siblings ...)
  2013-05-05 18:32 ` vini.ipsmaker at gmail dot com
@ 2013-05-05 23:31 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-05 23:31 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |4.8.1, 4.9.0
         Resolution|                            |FIXED

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-05-05 23:31:11 UTC ---
Closing as fixed.


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

end of thread, other threads:[~2013-05-05 23:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-11  0:57 [Bug c++/56914] New: internal compiler error: Segmentation fault vini.ipsmaker at gmail dot com
2013-04-11  1:01 ` [Bug c++/56914] " vini.ipsmaker at gmail dot com
2013-04-11  7:37 ` rguenth at gcc dot gnu.org
2013-04-11  9:34 ` paolo.carlini at oracle dot com
2013-05-05 13:56 ` paolo.carlini at oracle dot com
2013-05-05 18:32 ` vini.ipsmaker at gmail dot com
2013-05-05 23:31 ` paolo.carlini at oracle dot com

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