Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-typedef1.C

raw
1 // PR c++/50508
2 // { dg-do compile { target c++11 } }
3
4 template <class T>
5 struct integral_constant {
6 typedef T value_type;
7 constexpr operator value_type() { return true; }
8 };
9
10 static constexpr bool value = integral_constant<bool>()
11 && true;