repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-loop6.C
blob
e49e53193d1c0a6a660c91934ff796974d073336
1
// PR c++/65970
2
// { dg-do compile { target c++14 } }
3
// { dg-options -fconstexpr-loop-limit=5 }
4
5
constexpr int foo() {
6
while (true) // { dg-error "-fconstexpr-loop-limit" }
7
;
8
return 0;
9
}
10
11
constexpr int i = foo(); // { dg-message "" }