]> granicus.if.org Git - clang/commit
constexpr: Unlike other incomplete types, 'void' cannot possibly be completed as
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 1 Feb 2012 04:40:02 +0000 (04:40 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 1 Feb 2012 04:40:02 +0000 (04:40 +0000)
commit8398cbfc73f7ff0a676232db9ea9160bb9dafd8d
tree393e5bf85ad28286a64934f7a5b7afb7067bc5eb
parentb04035a7b1a3c9b93cea72ae56dd2ea6e787bae9
constexpr: Unlike other incomplete types, 'void' cannot possibly be completed as
a literal type. Disallow it as the return type of a constexpr function
declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp