public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58466] New: [4.8/4.9 Regression] ICE in cxx_eval_constant_expression
@ 2013-09-18 15:49 jakub at gcc dot gnu.org
  2013-09-18 15:49 ` [Bug c++/58466] " jakub at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-09-18 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58466
           Summary: [4.8/4.9 Regression] ICE in
                    cxx_eval_constant_expression
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: jason at gcc dot gnu.org

template <char first, char... data>
struct CTArray
{
  static constexpr unsigned long count = sizeof... (data);
};
struct Str
{
  template <typename T>
  Str(T...) {}
};
template <typename T>
struct ToStr;
template <char... letters>
struct ToStr <CTArray <letters...>>
{
  static Str
  get ()
  {
    return { letters... };
  }
};
using Foo = CTArray <'F', 'o', 'o'>;
Str str(ToStr <Foo>::get ());

ICEs with -std=c++11.  Before r198750 it just errored out on the testcase (is
it invalid, right?), in r198800 ICEs, haven't bisected more.


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

end of thread, other threads:[~2014-01-29 21:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-18 15:49 [Bug c++/58466] New: [4.8/4.9 Regression] ICE in cxx_eval_constant_expression jakub at gcc dot gnu.org
2013-09-18 15:49 ` [Bug c++/58466] " jakub at gcc dot gnu.org
2013-10-05 21:57 ` paolo.carlini at oracle dot com
2013-10-05 22:30 ` reichelt at gcc dot gnu.org
2013-10-05 22:32 ` reichelt at gcc dot gnu.org
2013-10-16  9:48 ` jakub at gcc dot gnu.org
2013-10-17 17:58 ` paolo.carlini at oracle dot com
2013-10-18 21:24 ` paolo at gcc dot gnu.org
2013-10-18 21:26 ` [Bug c++/58466] [4.8 " paolo.carlini at oracle dot com
2013-10-31 12:09 ` paolo at gcc dot gnu.org
2013-10-31 12:10 ` paolo at gcc dot gnu.org
2013-10-31 12:13 ` [Bug c++/58466] [4.8/4.9 " paolo.carlini at oracle dot com
2013-11-05 13:56 ` rguenth at gcc dot gnu.org
2014-01-28 15:53 ` trippels at gcc dot gnu.org
2014-01-29 20:33 ` jason at gcc dot gnu.org
2014-01-29 20:54 ` jason at gcc dot gnu.org
2014-01-29 21:28 ` jason at gcc dot gnu.org
2014-01-29 21:28 ` jason at gcc dot gnu.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).