[Bug c++/46873] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489

2010-12-13 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2010.12.13 16:16:56
 Ever Confirmed|0   |1

--- Comment #5 from Jason Merrill jason at gcc dot gnu.org 2010-12-13 
16:16:56 UTC ---
Mine.


[Bug c++/46873] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489

2010-12-13 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873

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

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=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


[Bug c++/46873] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489

2010-12-13 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873

Jason Merrill jason at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #7 from Jason Merrill jason at gcc dot gnu.org 2010-12-13 
20:53:19 UTC ---
Fixed.


[Bug c++/46873] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489

2010-12-09 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873

--- Comment #1 from Zdenek Sojka zsojka at seznam dot cz 2010-12-09 17:44:39 
UTC ---
- original.C -
#include map
#include string

void foo()
{
const std::string s;
std::mapstd::string, std::string::value_type(s, s);
}
--

Original testcase, it should be valid.

$ g++ -std=gnu++0x original.C 
In file included from
/mnt/svn/gcc-trunk/binary-167621-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-167621-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-167621-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-167621-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_stringchar, _T2 = std::basic_stringchar]':
original.C:7:53:   instantiated from here
/mnt/svn/gcc-trunk/binary-167621-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.


[Bug c++/46873] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489

2010-12-09 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873

--- Comment #2 from Zdenek Sojka zsojka at seznam dot cz 2010-12-09 17:47:50 
UTC ---
Now I noticed the line numbers of ICE differ, so it might be different problem. 

Let me know if you need to reduce original.C.


[Bug c++/46873] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489

2010-12-09 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873

--- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com 2010-12-09 
18:04:26 UTC ---
Yes, reducing it and filing a separate PR seems a good idea: for sure in map
and string there are no bitfields.


[Bug c++/46873] [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489

2010-12-09 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873

Zdenek Sojka zsojka at seznam dot cz changed:

   What|Removed |Added

   Keywords|ice-on-valid-code   |

--- Comment #4 from Zdenek Sojka zsojka at seznam dot cz 2010-12-09 18:54:34 
UTC ---
Opened PR46877 for the second issue.