2018-01-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/83924
* g++.dg/warn/Wduplicated-branches5.C: New.
From-SVN: r257131
+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.
--- /dev/null
+// 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>{});
+}