[cfe-commits] [clang] bugfux #10925 Segmentation fault on valid code

David Blaikie dblaikie at gmail.com
Tue Sep 20 11:59:53 PDT 2011


>
> C++ allows "typename" keywords with identifiers only. In this case compiler
> interpret identifier as type definition. Clang doesn't check for this case
> and crash.
> Please find the patch attached for review.


Could you simplify the test case from the bug & include it in the change? (&
the diagnostic message should probably use the word "typename" not "type
name" (since it refers to an identifier). You could also, potentially,
include a removal fixit to remove the typename token if you think that might
be the likely fix (seems to be in this case))

- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110920/60259d93/attachment.html>


More information about the cfe-commits mailing list