public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58983] New: ICE when inheriting templated constructor
@ 2013-11-03 22:31 wtt6 at cornell dot edu
  2013-11-03 23:40 ` [Bug c++/58983] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: wtt6 at cornell dot edu @ 2013-11-03 22:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58983
           Summary: ICE when inheriting templated constructor
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wtt6 at cornell dot edu

$ cat foo.cpp
struct Base { template<class T> Base(T) { } };
struct Derived: public Base { using Base::Base; };

int main() {
  Derived(1);
  return 0;
}
$ /var/tmp/portage/wthrowe-gcc-trunk/dist/bin/g++ -v -std=c++11 foo.cpp
Using built-in specs.
COLLECT_GCC=/var/tmp/portage/wthrowe-gcc-trunk/dist/bin/g++
COLLECT_LTO_WRAPPER=/var/tmp/portage/wthrowe-gcc-trunk/dist/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../srcdir/configure
--prefix=/var/tmp/portage/wthrowe-gcc-trunk/dist
Thread model: posix
gcc version 4.9.0 20131103 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'

/var/tmp/portage/wthrowe-gcc-trunk/dist/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus
-quiet -v -D_GNU_SOURCE foo.cpp -quiet -dumpbase foo.cpp -mtune=generic
-march=x86-64 -auxbase foo -std=c++11 -version -o /tmp/ccBubai5.s
GNU C++ (GCC) version 4.9.0 20131103 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.9.0 20131103 (experimental), GMP version
5.1.3, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/var/tmp/portage/wthrowe-gcc-trunk/dist/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/var/tmp/portage/wthrowe-gcc-trunk/dist/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0

/var/tmp/portage/wthrowe-gcc-trunk/dist/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/x86_64-unknown-linux-gnu

/var/tmp/portage/wthrowe-gcc-trunk/dist/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/backward

/var/tmp/portage/wthrowe-gcc-trunk/dist/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include
 /var/tmp/portage/wthrowe-gcc-trunk/dist/include

/var/tmp/portage/wthrowe-gcc-trunk/dist/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include-fixed
 /usr/include
End of search list.
GNU C++ (GCC) version 4.9.0 20131103 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.9.0 20131103 (experimental), GMP version
5.1.3, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 2df0428df4df4a6a1a5fa39a6a3e09ed
foo.cpp: In constructor ‘Derived::Derived(T) [with T = int]’:
foo.cpp:2:43: internal compiler error: Bus error
 struct Derived: public Base { using Base::Base; };
                                           ^
0xb2d06f crash_signal
        ../../srcdir/gcc/toplev.c:334
0xf3dfa0 recog_97
        ../../srcdir/gcc/config/i386/i386.md:941
0xdf594d recog_memoized
        ../../srcdir/gcc/recog.h:155
0xdf594d insn_default_length(rtx_def*)
        ../../srcdir/gcc/config/i386/i386.md:636
0x8e59bd shorten_branches(rtx_def*)
        ../../srcdir/gcc/final.c:1190
0x8e5c8f rest_of_handle_shorten_branches
        ../../srcdir/gcc/final.c:4516
0x8e5c8f execute
        ../../srcdir/gcc/final.c:4545
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.
>From gcc-bugs-return-433367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Nov 03 23:23:42 2013
Return-Path: <gcc-bugs-return-433367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5149 invoked by alias); 3 Nov 2013 23:23:42 -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 4605 invoked by uid 48); 3 Nov 2013 23:21:39 -0000
From: "zeratul976 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/52015] std::to_string does not work under MinGW
Date: Sun, 03 Nov 2013 23:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 4.6.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zeratul976 at hotmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-52015-4-UIYyTYq4q2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52015-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52015-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-11/txt/msg00144.txt.bz2
Content-length: 843

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

--- Comment #32 from Nathan Ridge <zeratul976 at hotmail dot com> ---
(In reply to Jonathan Wakely from comment #31)
> Or to put it another way, this bug only affects MinGW users, is blocked by a
> limitation in MinGW, and noone from MinGW has offered to do anything about
> it, but you're pointing fingers at GCC devs and saying there's a GCC clique?
> Who is preventing MinGW devs joining this clique?

No one, but they need to know about issues like this in order to do something
about them. Above you said that this was "not possible" to fix for mingw. If
you really meant "this would require changes in the mingw runtime", perhaps you
should have said that. Then, even if you are not motivated to approach the
MinGW developers to effect such changes, someone else (e.g. me) could have.


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

* [Bug c++/58983] ICE when inheriting templated constructor
  2013-11-03 22:31 [Bug c++/58983] New: ICE when inheriting templated constructor wtt6 at cornell dot edu
@ 2013-11-03 23:40 ` paolo.carlini at oracle dot com
  2013-11-04  7:35 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-11-03 23:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I can't reproduce this.


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

* [Bug c++/58983] ICE when inheriting templated constructor
  2013-11-03 22:31 [Bug c++/58983] New: ICE when inheriting templated constructor wtt6 at cornell dot edu
  2013-11-03 23:40 ` [Bug c++/58983] " paolo.carlini at oracle dot com
@ 2013-11-04  7:35 ` mpolacek at gcc dot gnu.org
  2013-11-04  9:24 ` paolo.carlini at oracle dot com
  2013-11-04 17:59 ` wtt6 at cornell dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-11-04  7:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Me neither.


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

* [Bug c++/58983] ICE when inheriting templated constructor
  2013-11-03 22:31 [Bug c++/58983] New: ICE when inheriting templated constructor wtt6 at cornell dot edu
  2013-11-03 23:40 ` [Bug c++/58983] " paolo.carlini at oracle dot com
  2013-11-04  7:35 ` mpolacek at gcc dot gnu.org
@ 2013-11-04  9:24 ` paolo.carlini at oracle dot com
  2013-11-04 17:59 ` wtt6 at cornell dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-11-04  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Then let's close it.


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

* [Bug c++/58983] ICE when inheriting templated constructor
  2013-11-03 22:31 [Bug c++/58983] New: ICE when inheriting templated constructor wtt6 at cornell dot edu
                   ` (2 preceding siblings ...)
  2013-11-04  9:24 ` paolo.carlini at oracle dot com
@ 2013-11-04 17:59 ` wtt6 at cornell dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: wtt6 at cornell dot edu @ 2013-11-04 17:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from William Throwe <wtt6 at cornell dot edu> ---
Testing, I cannot reproduce either on a different machine, so probably
something just went wrong with my install here.  Sorry for the noise.


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

end of thread, other threads:[~2013-11-04 17:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-03 22:31 [Bug c++/58983] New: ICE when inheriting templated constructor wtt6 at cornell dot edu
2013-11-03 23:40 ` [Bug c++/58983] " paolo.carlini at oracle dot com
2013-11-04  7:35 ` mpolacek at gcc dot gnu.org
2013-11-04  9:24 ` paolo.carlini at oracle dot com
2013-11-04 17:59 ` wtt6 at cornell dot edu

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