[llvm-bugs] [Bug 24246] Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!", include/llvm/Support/Casting.h, line 237

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 17 17:14:23 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=24246

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|FIXED                       |---
           Assignee|rikka at google.com            |david.majnemer at gmail.com

--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
We've fixed the symptoms but not the actual bug -- getAs<T>() on a valid type
should never assert. The problem is that we're producing a broken type for the
largest_type_select<false> specialization -- the canonical type of the template
specialization type is a record type, but desugaring the template
specialization type does not produce that record type (because it thinks that
it's not a sugar node).

We should back out r249090 (the typo correction code was correct prior to this
change) and fix the code that handles this MS extension to create a correct
type here.

David, can you take a look?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151118/dfa09faa/attachment.html>


More information about the llvm-bugs mailing list