checkedc / checkedc-llvm-project

This repo contains a version of clang that is modified to support Checked C. Checked C is an extension to C that lets programmers write C code with bounds checking and improved type-safety.
13 stars 19 forks source link

Fix crash when processing GCC statement expression #1226

Closed dtarditi closed 8 months ago

dtarditi commented 8 months ago

This fixes issue #1220, a crash when processing a GCC statement expression. The problem was that lexicographic comparison of expressions assumed that all children of expressions are expressions also. This is no true for the GCC statement expression extension, which wraps a statement in an expression.