]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Fix next variable initialization in cp_parser_omp_clause_linear [PR123128]
authorJakub Jelinek <jakub@redhat.com>
Mon, 15 Dec 2025 12:44:20 +0000 (13:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 15 Dec 2025 12:44:20 +0000 (13:44 +0100)
commite10dc8fa17ac633dfeca38cadfe0ba974af7e5a3
treed29c0f0fcd1d714dec2397fb2dc6c629a5efc348
parente658b6febc5d94e0c7a06d76d6df2a3d0b218667
openmp: Fix next variable initialization in cp_parser_omp_clause_linear [PR123128]

Apparently clang++ emits error on int *p = ((unsigned long) 0); while g++
accepts it without any diagnostics even with -pedantic-errors -W -Wall.
Dunno which is right, anyway, I meant to initialize with NULL, not
UNKNOWN_LOCATION.

2025-12-15  Jakub Jelinek  <jakub@redhat.com>

PR c++/123128
* parser.cc (cp_parser_omp_clause_linear): Initialize next to NULL
rather than UNKNOWN_LOCATION.
gcc/cp/parser.cc