comparison gcc/testsuite/g++.dg/cpp0x/constexpr-47969.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
6 // constexpr operator int () { return 1; } 6 // constexpr operator int () { return 1; }
7 }; 7 };
8 8
9 constexpr A a = A(); 9 constexpr A a = A();
10 10
11 int ar[a]; // { dg-error "could not convert|has non-integral type" } 11 int ar[a]; // { dg-error "could not convert" }
12 // { dg-error "8:size of array .ar. has non-integral" "" { target c++11 } .-1 }