[Bug c++/123128] Recent gcc trunk build fail with clang
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 15 12:47:22 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123128
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:e10dc8fa17ac633dfeca38cadfe0ba974af7e5a3
commit r16-6120-ge10dc8fa17ac633dfeca38cadfe0ba974af7e5a3
Author: Jakub Jelinek <jakub@redhat.com>
Date: Mon Dec 15 13:44:20 2025 +0100
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.
More information about the Gcc-bugs
mailing list