Re: C++ PATCH for c++/65327 aka DR 1688 (volatile constexpr variables)

2015-03-16 Thread Jason Merrill
OK for trunk, not for release branches. Jason

C++ PATCH for c++/65327 aka DR 1688 (volatile constexpr variables)

2015-03-16 Thread Marek Polacek
The PR points out DR 1688: volatile + constexpr is a valid combination. This patch makes the compiler accept such a code. There's a related problem: constexpr volatile int a = 42; constexpr int b = a; the initialization of b should be rejected, but it is not. My patch does not address this issue