diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2018-01-28 01:28:05 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2018-01-28 01:28:05 +0000 |
commit | 19eab74014d78f800c2cef9aabb7ce3d8a0e8b4e (patch) | |
tree | 31aa6f5e9852c9b561ec26388c65b670f848b37b | |
parent | ce6250b5825ae42feb7a34f1c56cf2bff1db6cea (diff) | |
download | gcc-19eab74014d78f800c2cef9aabb7ce3d8a0e8b4e.zip gcc-19eab74014d78f800c2cef9aabb7ce3d8a0e8b4e.tar.gz gcc-19eab74014d78f800c2cef9aabb7ce3d8a0e8b4e.tar.bz2 |
re PR c++/83924 (ICE: Error reporting routines re-entered with -Wduplicated-branches)
2018-01-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/83924
* g++.dg/warn/Wduplicated-branches5.C: New.
From-SVN: r257131
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/warn/Wduplicated-branches5.C | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 42ba2fd..9470667 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-27 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/83924 + * g++.dg/warn/Wduplicated-branches5.C: New. + 2018-01-26 Segher Boessenkool <segher@kernel.crashing.org> * gcc.target/powerpc/safe-indirect-jump-1.c: Build on all targets. diff --git a/gcc/testsuite/g++.dg/warn/Wduplicated-branches5.C b/gcc/testsuite/g++.dg/warn/Wduplicated-branches5.C new file mode 100644 index 0000000..d23a3e7 --- /dev/null +++ b/gcc/testsuite/g++.dg/warn/Wduplicated-branches5.C @@ -0,0 +1,16 @@ +// PR c++/83924 +// { dg-do compile { target c++11 } } +// { dg-options "-Wduplicated-branches" } + +class GenVectorS {}; + +template<int N> +using VectorS = GenVectorS; + +template<int n, int m> +void runB(const VectorS<(n > m ? n : m)>) +{} + +void runA() { + runB<1, 1>(VectorS<1>{}); +} |