]> granicus.if.org Git - clang/commit
PR18746: If a constexpr function has a dependent return type and no return
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 22 Apr 2014 23:14:23 +0000 (23:14 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 22 Apr 2014 23:14:23 +0000 (23:14 +0000)
commite75dc3bcc44a28cc42706c516b614ee5c0406196
tree88ad217dcd666ab60147a1207ca56f44ead8f189
parent7de82546dccd36c6e0f3b04fc055b870045d9b04
PR18746: If a constexpr function has a dependent return type and no return
statements, don't diagnose; the return type might end up being 'void'.

Patch by Rahul Jain! Tiny tweaks by me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206929 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/cxx1y-deduced-return-type.cpp