aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2023-08-29 13:16:41 -0400
committerMarek Polacek <polacek@redhat.com>2023-08-30 10:40:12 -0400
commitc121afc3b6c96a1f229ba0c4a4de6bd4b6be9a53 (patch)
tree9c6b8b14a966eee3c25b75f138217389732602ba /gcc/value-range.h
parent7f2ed06ddc825e8a4e0edfd1d66b5156e6dc1d34 (diff)
downloadgcc-c121afc3b6c96a1f229ba0c4a4de6bd4b6be9a53.zip
gcc-c121afc3b6c96a1f229ba0c4a4de6bd4b6be9a53.tar.gz
gcc-c121afc3b6c96a1f229ba0c4a4de6bd4b6be9a53.tar.bz2
c++: disallow constinit on functions [PR111173]
[dcl.constinit]/1: The constinit specifier shall be applied only to a declaration of a variable with static or thread storage duration. and while we detect constinit int fn(); we weren't detecting using F = int(); constinit F f; PR c++/111173 gcc/cp/ChangeLog: * decl.cc (grokdeclarator): Disallow constinit on functions. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/constinit19.C: New test.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions