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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-70265-2.C
blob
fc360f1a9bbd58d51377d4fa3cce85c777e0869c
1
// PR c++/70265
2
// { dg-do compile { target c++14 } }
3
4
constexpr int
5
foo (int p)
6
{
7
int t = 0;
8
while (1)
9
t = 0; // { dg-error "count exceeds" }
10
return t;
11
}
12
13
static_assert (foo (1) == 0, ""); // { dg-error "non-constant" }