From: Andreas Schwab <schwab@linux-m68k.org>
To: Kai Tietz <ktietz70@googlemail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Jason Merrill <jason@redhat.com>
Subject: Re: [patch c++]: Fix PR/63996
Date: Sun, 14 Dec 2014 11:00:00 -0000 [thread overview]
Message-ID: <87h9wywl7d.fsf@igel.home> (raw)
In-Reply-To: <CAEwic4aaeJZ7xFnRabCHanosMzTcf-=EGHPXRv-7x8L2EU8VOw@mail.gmail.com> (Kai Tietz's message of "Fri, 12 Dec 2014 11:58:15 +0100")
Kai Tietz <ktietz70@googlemail.com> writes:
> New testcase in g++.dg/cpp1y as pr63996.C
>
> // { dg-do compile { target c++14 } }
>
> constexpr int
> foo (int i)
> {
> int a[i] = { };
> }
>
> constexpr int j = foo (1); // { dg-error "is not a constant expression" }
FAIL: g++.dg/cpp1y/pr63996.C -std=c++14 (test for excess errors)
Excess errors:
/usr/local/gcc/gcc-20141214/gcc/testsuite/g++.dg/cpp1y/pr63996.C:6:10: error: ISO C++ forbids variable length array 'a' [-Wvla]
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2014-12-14 10:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 10:58 Kai Tietz
2014-12-12 15:49 ` Jason Merrill
2014-12-12 20:27 ` Paolo Carlini
2014-12-14 11:00 ` Andreas Schwab [this message]
2014-12-15 10:49 ` Paolo Carlini
2014-12-15 11:34 ` Kai Tietz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9wywl7d.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=ktietz70@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).