public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46877] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502
@ 2010-12-09 18:54 zsojka at seznam dot cz
  2010-12-13 20:47 ` [Bug c++/46877] " jason at gcc dot gnu.org
  2010-12-13 20:52 ` jason at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2010-12-09 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0x] ICE: in build_data_member_initialization, at
                    cp/semantics.c:5502
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
                CC: jason@gcc.gnu.org


Created attachment 22697
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22697
reduced testcase

+++ This bug was initially created as a clone of Bug #46873 +++

----- original.C -----
#include <map>
#include <string>

void foo()
{
    const std::string s;
    std::map<std::string, std::string>::value_type(s, s);
}
----------------------

Hopefully correctly reduced testcase is attached.

Compiler output (for original.C):
$ gcc -std=c++0x original.C 
In file included from
/mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:65:0,
                 from
/mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_tree.h:63,
                 from
/mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/map:60,
                 from original.C:1:
/mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_pair.h:
In constructor 'constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&)
[with _T1 = const std::basic_string<char>, _T2 = std::basic_string<char>]':
original.C:7:53:   instantiated from here
/mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_pair.h:102:35:
internal compiler error: in build_data_member_initialization, at
cp/semantics.c:5502
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Compiler output (for attached reduced testcase.C):
$ gcc -std=c++0x testcase.C 
testcase.C: In constructor 'constexpr pair::pair()':
testcase.C:19:3: internal compiler error: in build_data_member_initialization,
at cp/semantics.c:5502
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r167556 - crash


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

* [Bug c++/46877] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502
  2010-12-09 18:54 [Bug c++/46877] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502 zsojka at seznam dot cz
@ 2010-12-13 20:47 ` jason at gcc dot gnu.org
  2010-12-13 20:52 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2010-12-13 20:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-13 20:47:04 UTC ---
Author: jason
Date: Mon Dec 13 20:46:58 2010
New Revision: 167770

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167770
Log:
    PR c++/46873
    PR c++/46877
    * semantics.c (build_data_member_initialization): Handle
    cv-qualified data member.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor4.C
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/46877] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502
  2010-12-09 18:54 [Bug c++/46877] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502 zsojka at seznam dot cz
  2010-12-13 20:47 ` [Bug c++/46877] " jason at gcc dot gnu.org
@ 2010-12-13 20:52 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2010-12-13 20:52 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-13 20:52:41 UTC ---
Fixed.


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

end of thread, other threads:[~2010-12-13 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-09 18:54 [Bug c++/46877] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502 zsojka at seznam dot cz
2010-12-13 20:47 ` [Bug c++/46877] " jason at gcc dot gnu.org
2010-12-13 20:52 ` 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).