https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125842
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:70e44500923c921f9a5e9ba98e3c5c7e35ff34e5 commit r17-3691-g70e44500923c921f9a5e9ba98e3c5c7e35ff34e5 Author: Jakub Jelinek <[email protected]> Date: Thu Aug 27 10:38:51 2026 +0200 c++, testsuite: Add tests for C++26 P4136R2 - #line is not in line with existing implementation [PR125842] IMHO we used to conform even before this paper, pedwarning for #line outside of [1,2147483647] range and always warning for [4294967296,inf] range, so we conform even when program with #line outside of [1,2147483647] range is conditionally supported instead of ill-formed. Our conditional-support is that we accept [0,0][2147483648,4294967295] as an extension unless pedantic. 2026-08-27 Jakub Jelinek <[email protected]> PR c++/125842 * g++.dg/cpp/line-1.C: New test. * g++.dg/cpp/line-2.C: New test. * g++.dg/cpp/line-3.C: New test. Reviewed-by: Jason Merrill <[email protected]>
