diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-02-22 00:36:53 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-02-22 00:36:53 +0000 |
commit | 59006e4338ce2029fefe3ce584b65a4637f8bfcc (patch) | |
tree | da00d205f36859eb5e24144b43a901fdf4a90fc8 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e39062199e2f9df1b276e8cbd1f2599c11685bce (diff) | |
download | bcm5719-llvm-59006e4338ce2029fefe3ce584b65a4637f8bfcc.tar.gz bcm5719-llvm-59006e4338ce2029fefe3ce584b65a4637f8bfcc.zip |
Fix a few auto-related issues:
* 'auto' was being rejected on abstract-declarators with trailing return
types and on typedefs with trailing return types. 'auto' is always
allowed in these cases. This was found while testing the fix for PR 9278.
* A very poor diagnostic was being issued for auto (f() -> int): "return
type must be 'auto', not 'auto'". This is closely related to PR 9060.
* Trailing return type handling was happening slightly too late,
resulting in the checks for functions returning arrays and functions
returning functions being missed.
llvm-svn: 126166
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions