public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60305] New: ICE constexpr array of functions in template
@ 2014-02-21 20:13 trashyankes at wp dot pl
  2014-02-25  6:47 ` [Bug c++/60305] " daniel.kruegler at googlemail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: trashyankes at wp dot pl @ 2014-02-21 20:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60305
           Summary: ICE constexpr array of functions in template
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trashyankes at wp dot pl

-->8---->8---->8---->8---->8--

template<int Y>
int F() { return Y; }

template<int... I>
void func(int i)
{
//internal compiler error: in type_dependent_expression_p, at cp/pt.c:19969
    constexpr int (*Func[])() = { F<I>... }; 
    return Func[i]();
}

-->8---->8---->8---->8---->8--

without constexpr its compile without error.


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

end of thread, other threads:[~2014-03-18 17:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-21 20:13 [Bug c++/60305] New: ICE constexpr array of functions in template trashyankes at wp dot pl
2014-02-25  6:47 ` [Bug c++/60305] " daniel.kruegler at googlemail dot com
2014-03-01  0:42 ` [Bug c++/60305] [4.7 Regression] " reichelt at gcc dot gnu.org
2014-03-18 16:28 ` paolo.carlini at oracle dot com
2014-03-18 17:11 ` paolo at gcc dot gnu.org
2014-03-18 17:12 ` 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).