[cfe-commits] [PATCH] PR9488: don't assert/crash if auto type substitution fails

Richard Smith richard at metafoo.co.uk
Thu Mar 17 05:06:44 PDT 2011


Hi,

In PR9488 I observed that clang crashes if auto type substitution fails.
This can happen if 'auto' is deduced as 'void' in the context of an 'auto
&' type. Testing the fix for this issue exposed another issue: the type
source information for the substituted type was not being built.

The attached patch fixes these issues. Please review!

Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-9488.diff
Type: text/x-patch
Size: 5328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110317/eb1b42a4/attachment.bin>


More information about the cfe-commits mailing list