On 27.05.21 21:58, Joseph Myers wrote: > On Thu, 27 May 2021, Tobias Burnus wrote: >> @Joseph: I CC'ed you in case you have comments regarding >> c-parser.c's c_parser_check_balanced_raw_token_sequence Pilot error on my side – doing three things in parallel (fixing a patch, updating docs + attending a spec conference) does not work well. Unsurprisingly, when properly used, calling c_parser_check_balanced_raw_token_sequence does work. Hence, I removed my balanced function & only the OpenMP specific omp_affinity function remains. (Updated version attached.) > As far as I can see, ... isn't > checking for balanced token sequences (in the sense defined in C2x) at all > and would accept e.g. }]{[ as being balanced. It looks as if one should/could update the gcc/cp/ function to use the same algorithm as the gcc/c/ one – as the latter has also this issue. But that's a separate issue and completely independent of this patch. Thanks, Tobias ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf