Hacker News new | ask | show | jobs
by hvdijk 1356 days ago
That's a bug, there is no such thing as an invalid trigraph. ?? followed by any character other than =, /, ', (, ), !, <, >, or - is not a valid trigraph, but that doesn't make it an invalid trigraph, that just makes it not a trigraph, it's perfectly valid to have ??? in a comment, or in a string literal.
2 comments

Are you telling me that C compilers in the early 90's had bugs and confusing error messages??!!?!??? WTF?!??!?!?
Oh so that's why their called trigraphs, because there's 3 valid states?

Valid Invalid ??? (Exercise for the reader to decide if this is a trigraph or not)