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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-54002.C
blob
125a18d8e9e457e5c103ac6ac6a6167def8b869a
1
// PR c++/54002
2
// { dg-do compile { target c++11 } }
3
4
class C1 {
5
constexpr static int foo(int x) { return x + 1; }
6
constexpr static int bar = foo(sizeof(int)); // { dg-error "constant expression" }
7
};