This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61723] [C++11] ICE in contains_struct_check
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Jul 2014 14:09:08 +0000
- Subject: [Bug c++/61723] [C++11] ICE in contains_struct_check
- Auto-submitted: auto-generated
- References: <bug-61723-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61723
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I find this testcase rather weird: std::initializer_list isn't a random user
type: we have non-trivial "magic" in the front-end which *assumes* the actual
definition in our <initializer_list> header. You can see this in the testcase
here too, because the ICEs disappear if _M_len is declared as an (unsigned)
__SIZE_TYPE__ (not as an int) and an additional field _M_array is added too
(see our actual std::initializer_list for details). If you ask me, the Bug
Report seems invalid to me or at least very low priority, unless a version of
it not redefining std::initializer_list exists.