public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/57047] New: [C++11] stl_pair.h:137:64: internal compiler error: Segmentation fault in constexpr constructor
@ 2013-04-23 12:49 mattyclarkson at gmail dot com
  2013-04-23 13:19 ` [Bug c++/57047] " redi at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: mattyclarkson at gmail dot com @ 2013-04-23 12:49 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57047
           Summary: [C++11] stl_pair.h:137:64: internal compiler error:
                    Segmentation fault in constexpr constructor
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mattyclarkson@gmail.com


template<class _U1, class _U2, class = typename
       enable_if<__and_<is_convertible<_U1, _T1>,
      is_convertible<_U2, _T2>>::value>::type>
constexpr pair(_U1&& __x, _U2&& __y)
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }

Fails for my program when compiled with the following command line:

/usr/lib64/ccache/g++ -m64 -std=c++11 -Wall -Wextra -pedantic -pthread -flto
-DNDEBUG -O3 -Werror -pedantic-errors -fvisibility=hidden
-fvisibility-inlines-hidden -I/home/matt/svn/KS/lib
-I/home/matt/svn/KS/build/release/lib -I/home/matt/svn/KS/build/release/include
-I/home/matt/svn/KS/include -I/usr/include ../../lib/messaging/tests/task.cpp
-c -o lib/messaging/tests/task.cpp.4.o

With the following error:

In file included from
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_algobase.h:65:0,
                 from
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/char_traits.h:41,
                 from
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/string:42,
                 from
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/stdexcept:40,
                 from ../../lib/messaging/tests/task.cpp:15:
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:
In instantiation of ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with
_U1 = const char (&)[35]; _U2 = const char (&)[11]; <template-parameter-2-3> =
void; _T1 = udp::ks::messaging::Id; _T2 = udp::ks::messaging::Id]’:
../../lib/messaging/tests/task.cpp:371:7:   required from here
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:137:64:
  in constexpr expansion of ‘((std::pair<udp::ks::messaging::Id,
udp::ks::messaging::Id>*)this)->std::pair<udp::ks::messaging::Id,
udp::ks::messaging::Id>::first.udp::ks::messaging::Id::Id(((const
char*)std::forward<const char (&)[35]>((* & __x))))’
/home/matt/svn/KS/include/udp/keystone/messaging/id.hpp:260:30:   in constexpr
expansion of ‘udp::ks::messaging::Name::Validate(((const Char*)string))’
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_pair.h:137:64:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc99Hnms.out file, please attach this to
your bugreport.

Have attached the preprocessed output.
>From gcc-bugs-return-420811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 23 12:53:21 2013
Return-Path: <gcc-bugs-return-420811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5864 invoked by alias); 23 Apr 2013 12:53:21 -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 5845 invoked by uid 48); 23 Apr 2013 12:53:18 -0000
From: "mattyclarkson at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/57047] [C++11] stl_pair.h:137:64: internal compiler error: Segmentation fault in constexpr constructor
Date: Tue, 23 Apr 2013 12:53: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-Keywords:
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: mattyclarkson at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-57047-4-2J8FkdloWt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57047-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57047-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/msg01956.txt.bz2
Content-length: 276


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

--- Comment #1 from Matt Clarkson <mattyclarkson at gmail dot com> 2013-04-23 12:53:18 UTC ---
Created attachment 29919
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id)919
The preprocessed output before the ICE


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

end of thread, other threads:[~2013-05-10 14:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23 12:49 [Bug libstdc++/57047] New: [C++11] stl_pair.h:137:64: internal compiler error: Segmentation fault in constexpr constructor mattyclarkson at gmail dot com
2013-04-23 13:19 ` [Bug c++/57047] " redi at gcc dot gnu.org
2013-04-23 13:22 ` jakub at gcc dot gnu.org
2013-04-23 13:26 ` redi at gcc dot gnu.org
2013-04-23 13:42 ` mattyclarkson at gmail dot com
2013-04-23 13:47 ` redi at gcc dot gnu.org
2013-04-23 13:53 ` mattyclarkson at gmail dot com
2013-04-23 14:07 ` mattyclarkson at gmail dot com
2013-04-23 14:17 ` mattyclarkson at gmail dot com
2013-04-23 15:10 ` [Bug c++/57047] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
2013-05-10 14:36 ` jason 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).