public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46701] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5503
@ 2010-11-29  4:38 miles at gnu dot org
  2010-11-29  4:58 ` [Bug c++/46701] " miles at gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: miles at gnu dot org @ 2010-11-29  4:38 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: internal compiler error: in
                    build_data_member_initialization, at
                    cp/semantics.c:5503
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: miles@gnu.org


I don't know if this is the same as the other ICEs in
build_data_member_initialization, but it's at a different line number anyway...

Compiler version is:
g++ (Debian 20101128-1) 4.6.0 20101128 (experimental) [trunk revision 167220]

Here's the un-preprocessed source (preprocessed source attached):

  #include <string>
  #include <map>

  void f (const std::string &name, const std::string &val)
  {
    std::map<const std::string, std::string>::value_type (name, val);
  }


Compiled with:

  g++-snapshot -c -std=c++0x ,oink.cc


yields:

   In file included from
/usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:65:0,
            from
/usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/char_traits.h:41,
            from
/usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.6.0/../../../../include/c++/4.6.0/string:42,
            from ,oink.cc:1:
  
/usr/lib/gcc-snapshot/lib/gcc/x86_64-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>]':
   ,oink.cc:6:66:   instantiated from here
  
/usr/lib/gcc-snapshot/lib/gcc/x86_64-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:5503
   Please submit a full bug report,
   with preprocessed source if appropriate.
   See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.

Thanks,

-miles


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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-29  4:38 [Bug c++/46701] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5503 miles at gnu dot org
2010-11-29  4:58 ` [Bug c++/46701] " miles at gnu dot org
2010-11-29  5:14 ` miles at gnu dot org
2010-11-29  5:15 ` miles at gnu dot org
2010-11-29  5:16 ` miles at gnu dot org
2010-11-29  5:16 ` miles at gnu dot org
2010-11-29  5:22 ` miles at gnu dot org
2010-11-29 14:58 ` [Bug c++/46701] [C++0x] ICE " hjl.tools at gmail dot com
2010-12-09  1:02 ` gcc at abeckmann dot de
2010-12-09 10:32 ` paolo.carlini at oracle dot com
2010-12-09 10:33 ` paolo.carlini at oracle dot com
2010-12-09 21:50 ` gcc at abeckmann dot de
2010-12-09 22:37 ` paolo.carlini at oracle dot com
2010-12-10 13:18 ` paolo.carlini at oracle dot com
2010-12-13 21:29 ` 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).