diff options
author | Marek Polacek <polacek@redhat.com> | 2020-08-10 19:57:27 -0400 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 15:07:57 -0300 |
commit | 8d24fd7da548f917434404a7ce2db1f73b07ad3c (patch) | |
tree | f4c9c69e346e84936bfcc46899231b33138d880a /gcc/testsuite | |
parent | b162f4c54c722c11bdc14ee82fc42972de44d20a (diff) |
c++: Add unfixed test [PR88003]
Now that dg-ice is available, let's try it out.
gcc/testsuite/ChangeLog:
PR c++/88003
* g++.dg/cpp1y/auto-fn61.C: New test.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/auto-fn61.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C b/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C new file mode 100644 index 00000000000..c24c3b85d78 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/auto-fn61.C @@ -0,0 +1,13 @@ +// PR c++/88003 +// { dg-do compile { target c++14 } } +// { dg-ice "poplevel_class" } + +auto test() { + struct O { + struct N; + }; + return O(); +} + +typedef decltype(test()) TN; +struct TN::N {}; |