public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60595] New: Compiler error when computing default destructor thunk within virtual inheritance hierarchy
@ 2014-03-19 18:52 xguerin@tower-research.com
  2014-03-19 22:02 ` [Bug c++/60595] " daniel.kruegler at googlemail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: xguerin@tower-research.com @ 2014-03-19 18:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60595
           Summary: Compiler error when computing default destructor thunk
                    within virtual inheritance hierarchy
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xguerin@tower-research.com

Created attachment 32396
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32396&action=edit
Repeatble source

- g++48 -std=c++11 -o bug bug.cpp
bug.cpp:20:11: internal compiler error: in use_thunk, at cp/method.c:338
   virtual ~B() = default;
           ^
0x5fc344 use_thunk(tree_node*, bool)
        ../../gcc-4.8.2/gcc/cp/method.c:338
0x60729c emit_associated_thunks(tree_node*)
        ../../gcc-4.8.2/gcc/cp/semantics.c:3774
0x607557 expand_or_defer_fn(tree_node*)
        ../../gcc-4.8.2/gcc/cp/semantics.c:3901
0x61ee6d maybe_clone_body(tree_node*)
        ../../gcc-4.8.2/gcc/cp/optimize.c:428
0x60734d expand_or_defer_fn_1(tree_node*)
        ../../gcc-4.8.2/gcc/cp/semantics.c:3825
0x607528 expand_or_defer_fn(tree_node*)
        ../../gcc-4.8.2/gcc/cp/semantics.c:3895
0x5fd4bf synthesize_method(tree_node*)
        ../../gcc-4.8.2/gcc/cp/method.c:809
0x5a9f9a mark_used(tree_node*)
        ../../gcc-4.8.2/gcc/cp/decl2.c:4677
0x556afc build_over_call
        ../../gcc-4.8.2/gcc/cp/call.c:7055
0x553fa8 build_new_method_call_1
        ../../gcc-4.8.2/gcc/cp/call.c:7715
0x553fa8 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../gcc-4.8.2/gcc/cp/call.c:7785
0x55484e build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
        ../../gcc-4.8.2/gcc/cp/call.c:7352
0x5f4b7f expand_cleanup_for_base
        ../../gcc-4.8.2/gcc/cp/init.c:1217
0x5f90b1 expand_cleanup_for_base
        ../../gcc-4.8.2/gcc/cp/init.c:1112
0x5f90b1 emit_mem_initializers(tree_node*)
        ../../gcc-4.8.2/gcc/cp/init.c:1097
0x5fd856 synthesize_method(tree_node*)
        ../../gcc-4.8.2/gcc/cp/method.c:796
0x5a9f9a mark_used(tree_node*)
        ../../gcc-4.8.2/gcc/cp/decl2.c:4677
0x556afc build_over_call
        ../../gcc-4.8.2/gcc/cp/call.c:7055
0x553fa8 build_new_method_call_1
        ../../gcc-4.8.2/gcc/cp/call.c:7715
0x553fa8 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../gcc-4.8.2/gcc/cp/call.c:7785
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

================

- g++48 -v                       
Using built-in specs.
COLLECT_GCC=/apps/infra/toolset/opteron_rhel6/gcc-4.8.2/bin/g++
COLLECT_LTO_WRAPPER=/apps/infra/toolset/opteron_rhel6/gcc-4.8.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8.2/configure
--prefix=/spare/local/environbuild-infra/gcc/4.8.2
Thread model: posix
gcc version 4.8.2 (GCC)


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

* [Bug c++/60595] Compiler error when computing default destructor thunk within virtual inheritance hierarchy
  2014-03-19 18:52 [Bug c++/60595] New: Compiler error when computing default destructor thunk within virtual inheritance hierarchy xguerin@tower-research.com
@ 2014-03-19 22:02 ` daniel.kruegler at googlemail dot com
  2015-03-19  8:34 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2014-03-19 22:02 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
Seems to be fixed for the current 4.9 trunk
>From gcc-bugs-return-446944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 19 22:14:18 2014
Return-Path: <gcc-bugs-return-446944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2224 invoked by alias); 19 Mar 2014 22:14: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 2185 invoked by uid 48); 19 Mar 2014 22:14:14 -0000
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/60589] Parallel install fails due to multiple cilk.h installs
Date: Wed, 19 Mar 2014 22:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: burnus 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-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on short_desc everconfirmed
Message-ID: <bug-60589-4-PSve5OqX4E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60589-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60589-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: 2014-03/txt/msg01813.txt.bz2
Content-length: 1448

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`589

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-03-19
            Summary|Parallel install fails      |Parallel install fails due
                   |                            |to multiple cilk.h installs
     Ever confirmed|0                           |1

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Yury Gribov from comment #0)
> It looks like libcilkrts Makefile tries to install cilk.h twice in parallel
> (in install-nodist_cilkinclude_HEADERS and install-cilkincludeHEADERS) and
> runs into a conflict.
> The error was probably introduced in r208440.

Hmm, I wonder why I did not see it when I tried it. I once did a find to see
whether "cilk.h" was installed - but the find turned up blank. I now do see
several cilk/ include files - including cilk.h. :-(

Probably the right choice is to simply revert r208440.


> BTW could someone add libcilkrts to list of components?

What do you mean by this? I have a pending - and hopefully more sensible -
patch at http://gcc.gnu.org/ml/gcc-patches/2014-03/msg00492.html where
-fcilkplus implies -lcilkrts [-pthread], but I am not sure whether that's what
you meant.


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

* [Bug c++/60595] Compiler error when computing default destructor thunk within virtual inheritance hierarchy
  2014-03-19 18:52 [Bug c++/60595] New: Compiler error when computing default destructor thunk within virtual inheritance hierarchy xguerin@tower-research.com
  2014-03-19 22:02 ` [Bug c++/60595] " daniel.kruegler at googlemail dot com
@ 2015-03-19  8:34 ` paolo.carlini at oracle dot com
  2015-03-19  8:46 ` paolo.carlini at oracle dot com
  2015-03-19 10:17 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-19  8:34 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.8.3, 4.9.0, 5.0
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.8.3

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is fixed in 4.8.3.


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

* [Bug c++/60595] Compiler error when computing default destructor thunk within virtual inheritance hierarchy
  2014-03-19 18:52 [Bug c++/60595] New: Compiler error when computing default destructor thunk within virtual inheritance hierarchy xguerin@tower-research.com
  2014-03-19 22:02 ` [Bug c++/60595] " daniel.kruegler at googlemail dot com
  2015-03-19  8:34 ` paolo.carlini at oracle dot com
@ 2015-03-19  8:46 ` paolo.carlini at oracle dot com
  2015-03-19 10:17 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-19  8:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sshannin at gmail dot com

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 59760 has been marked as a duplicate of this bug. ***


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

* [Bug c++/60595] Compiler error when computing default destructor thunk within virtual inheritance hierarchy
  2014-03-19 18:52 [Bug c++/60595] New: Compiler error when computing default destructor thunk within virtual inheritance hierarchy xguerin@tower-research.com
                   ` (2 preceding siblings ...)
  2015-03-19  8:46 ` paolo.carlini at oracle dot com
@ 2015-03-19 10:17 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-19 10:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ignoreddropbox at gmail dot com

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 60180 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2015-03-19  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19 18:52 [Bug c++/60595] New: Compiler error when computing default destructor thunk within virtual inheritance hierarchy xguerin@tower-research.com
2014-03-19 22:02 ` [Bug c++/60595] " daniel.kruegler at googlemail dot com
2015-03-19  8:34 ` paolo.carlini at oracle dot com
2015-03-19  8:46 ` paolo.carlini at oracle dot com
2015-03-19 10:17 ` 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).