Commit 19eab740 by Paolo Carlini Committed by Paolo Carlini

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
parent ce6250b5
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.
......
// 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>{});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment