[Bug c++/107673] New: [13 Regression] ./options.h:239:36: error: token "." is not valid in preprocessor expressions since r13-3706-gd0a492faa6478c
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 14 10:28:33 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107673
Bug ID: 107673
Summary: [13 Regression] ./options.h:239:36: error: token "."
is not valid in preprocessor expressions since
r13-3706-gd0a492faa6478c
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: ppalka at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: hppa64-hpux11.3
Happens for the described cross compiler:
$ ~/Programming/gcc/configure --enable-languages=c,c++
--prefix=/home/marxin/bin/gcc --disable-bootstrap --disable-multilib
--disable-libsanitizer --target=hppa64-hpux11.3
...
$ make
...
g++ -fno-PIE -c -DIN_GCC_FRONTEND -g -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common
-DHAVE_CONFIG_H -I. -Icp -I/home/marxin/Programming/gcc/gcc
-I/home/marxin/Programming/gcc/gcc/cp
-I/home/marxin/Programming/gcc/gcc/../include
-I/home/marxin/Programming/gcc/gcc/../libcpp/include
-I/home/marxin/Programming/gcc/gcc/../libcody
-I/home/marxin/Programming/gcc/gcc/../libdecnumber
-I/home/marxin/Programming/gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I/home/marxin/Programming/gcc/gcc/../libbacktrace -o cp/tree.o -MT cp/tree.o
-MMD -MP -MF cp/.deps/tree.TPo /home/marxin/Programming/gcc/gcc/cp/tree.cc
In file included from /home/marxin/Programming/gcc/gcc/tree.h:24,
from /home/marxin/Programming/gcc/gcc/cp/tree.cc:24:
./options.h:239:36: error: token "." is not valid in preprocessor expressions
239 | #define target_flags global_options.x_target_flags
| ^
./options.h:8725:25: note: in expansion of macro ‘target_flags’
8725 | #define TARGET_GNU_LD ((target_flags & MASK_GNU_LD) != 0)
| ^~~~~~~~~~~~
/home/marxin/Programming/gcc/gcc/config/pa/pa64-hpux.h:358:33: note: in
expansion of macro ‘TARGET_GNU_LD’
358 | #define SUPPORTS_INIT_PRIORITY (TARGET_GNU_LD ? 1 : 0)
| ^~~~~~~~~~~~~
/home/marxin/Programming/gcc/gcc/cp/tree.cc:5013:5: note: in expansion of macro
‘SUPPORTS_INIT_PRIORITY’
5013 | #if SUPPORTS_INIT_PRIORITY
| ^~~~~~~~~~~~~~~~~~~~~~
More information about the Gcc-bugs
mailing list