Skip to content

TH allows negative type-level integers

Similar to #8306 (closed), it is possible to create type-level -1 via

type T = $(return $ LitT $ NumTyLit (-1))

Easy to fix with new TH by moving the check from parser to renamer. I'm preparing a patch.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information