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

Richard Smith richard at metafoo.co.uk
Thu Mar 17 07:52:12 PDT 2011

On Thu, March 17, 2011 12:06, Richard Smith wrote:
> 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!

Oops, I forgot to 'svn add' the new test before creating the patch! Test
is attached.

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

More information about the cfe-commits mailing list