[Bug c++/46289] [4.6 regression] ICE in build_constexpr_constructor_member_initializers, at cp/semantics.c:5513

bkoz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 3 21:20:00 GMT 2010


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

Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at gcc dot gnu.org

--- Comment #6 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2010-11-03 21:20:10 UTC ---

Ah. 

jonathan re #3, FYI and off-topic, I wanted aggregate initializers for the
std::complex constructors. 

ideally then

      _GLIBCXX_CONSTEXPR complex(float __r = 0.0f, float __i = 0.0f)
      : _M_value(__r + __i * 1.0fi) { }

could be

      _GLIBCXX_CONSTEXPR complex(float __r = 0.0f, float __i = 0.0f)
      : _M_value({__r, __i}) { }

less of an issue now that there is some syntax that works as part of a member
initialization list.

-benjamin



More information about the Gcc-bugs mailing list