public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1303] c++: Add fixed test [PR89197]
@ 2022-06-27 18:56 Marek Polacek
0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2022-06-27 18:56 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:508231d54405ac9f120cf30c28cd6eb10ceded30
commit r13-1303-g508231d54405ac9f120cf30c28cd6eb10ceded30
Author: Marek Polacek <polacek@redhat.com>
Date: Mon Jun 27 14:52:58 2022 -0400
c++: Add fixed test [PR89197]
Fixed since bug 97899 was fixed.
PR c++/89197
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/initlist130.C: New test.
Diff:
---
gcc/testsuite/g++.dg/cpp0x/initlist130.C | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist130.C b/gcc/testsuite/g++.dg/cpp0x/initlist130.C
new file mode 100644
index 00000000000..662a5a3ce3f
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist130.C
@@ -0,0 +1,5 @@
+// PR c++/89197
+// { dg-options "-Wno-c++11-extensions" }
+// This used to ICE with std=c++03, therefore we run it in C++03 too.
+
+template <int> void foo(int i) { const int c = int{i}; }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-27 18:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-27 18:56 [gcc r13-1303] c++: Add fixed test [PR89197] Marek Polacek
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).