public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46341] New: [C++0X] ICE: in cxx_eval_vec_init_1, at cp/semantics.c:6362
@ 2010-11-07  8:22 marc.glisse at normalesup dot org
  2010-11-07 11:15 ` [Bug c++/46341] " paolo.carlini at oracle dot com
  2011-02-25 10:47 ` marc.glisse at normalesup dot org
  0 siblings, 2 replies; 3+ messages in thread
From: marc.glisse at normalesup dot org @ 2010-11-07  8:22 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0X] ICE: in cxx_eval_vec_init_1, at
                    cp/semantics.c:6362
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


The following code causes an ICE, but compiles fine if I remove constexpr.

template<class _T2>
struct pair
{
        _T2 second;
        constexpr pair() : second() {}
};
template<typename _Tp, int _Nm>
struct array
{
        _Tp _M_instance[_Nm];
};
struct Periodic_3_offset_3 {
        Periodic_3_offset_3() {}
        typedef array< pair<Periodic_3_offset_3>, 2> Periodic_segment;
        Periodic_segment dual() {
                Periodic_segment ps;
        }
};


3.cc: In member function ‘Periodic_3_offset_3::Periodic_segment
Periodic_3_offset_3::dual()’:
3.cc:16:20:   in constexpr expansion of ‘ps.array<pair<Periodic_3_offset_3>,
2>::array()’
3.cc:16:20: internal compiler error: in cxx_eval_vec_init_1, at
cp/semantics.c:6362


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

* [Bug c++/46341] [C++0X] ICE: in cxx_eval_vec_init_1, at cp/semantics.c:6362
  2010-11-07  8:22 [Bug c++/46341] New: [C++0X] ICE: in cxx_eval_vec_init_1, at cp/semantics.c:6362 marc.glisse at normalesup dot org
@ 2010-11-07 11:15 ` paolo.carlini at oracle dot com
  2011-02-25 10:47 ` marc.glisse at normalesup dot org
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-11-07 11:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.07 11:15:06
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-11-07 11:15:06 UTC ---
Let's add Jason in CC for this one too.


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

* [Bug c++/46341] [C++0X] ICE: in cxx_eval_vec_init_1, at cp/semantics.c:6362
  2010-11-07  8:22 [Bug c++/46341] New: [C++0X] ICE: in cxx_eval_vec_init_1, at cp/semantics.c:6362 marc.glisse at normalesup dot org
  2010-11-07 11:15 ` [Bug c++/46341] " paolo.carlini at oracle dot com
@ 2011-02-25 10:47 ` marc.glisse at normalesup dot org
  1 sibling, 0 replies; 3+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-02-25 10:47 UTC (permalink / raw)
  To: gcc-bugs

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

Marc Glisse <marc.glisse at normalesup dot org> changed:

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

--- Comment #2 from Marc Glisse <marc.glisse at normalesup dot org> 2011-02-25 10:42:04 UTC ---
I can't reproduce it anymore, it was likely fixed at the same time as one of
the other constexpr bugs.


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

end of thread, other threads:[~2011-02-25 10:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-07  8:22 [Bug c++/46341] New: [C++0X] ICE: in cxx_eval_vec_init_1, at cp/semantics.c:6362 marc.glisse at normalesup dot org
2010-11-07 11:15 ` [Bug c++/46341] " paolo.carlini at oracle dot com
2011-02-25 10:47 ` marc.glisse at normalesup dot 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).