https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117843

            Bug ID: 117843
           Summary: [15 Regression] fortran fails bootstrap:
                    gcc/fortran/trans-io.cc:2662:24: error: enumeration
                    value 'EXPR_UNKNOWN' not handled in switch
                    [-Werror=switch]
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

Today's failure on gcc-master from r15-5768-g52e56eef53b444

Posting a bit of log from IRC:

                │07:22:28       trofi_ | gfortran fails the bootstrap:
`gcc/fortran/trans-io.cc:2662:24: error: enumeration value 'EXPR_UNKNOWN' not
handled in switch`, known issue?
                │07:22:46      pinskia | I saw that but I have not looked into
it
                │07:26:32        iains | morning .. my overnight (r15-5765)
suceeded with all langs
                │07:27:54      pinskia |
https://gcc.gnu.org/pipermail/gcc-testresults/2024-November/831613.html
                │07:27:57        iains | only three commits after that + daily
- but two of those were to fortran
                │07:28:32      pinskia | definitely
2261a15c0715cbf5c129b66ee44fc1d3a9e36972
                │07:28:45      pinskia | aka r15-5766
                │07:29:08      pinskia | just need a default:; in there

The build fails as:

/tmp/gb/./prev-gcc/xg++ -B/tmp/gb/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs 
-I/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu 
-I/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/include 
-I/home/slyfox/dev/git/gcc/libstdc++-v3/libsupc++
-L/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  -fno-PIE -c 
-DIN_GCC_FRONTEND -g -O2 -fno-checking -gtoggle -DIN_GCC    -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror  -DHAVE_CONFIG_H -fno-PIE
-I. -Ifortran -I/home/slyfox/dev/git/gcc/gcc
-I/home/slyfox/dev/git/gcc/gcc/fortran
-I/home/slyfox/dev/git/gcc/gcc/../include 
-I/home/slyfox/dev/git/gcc/gcc/../libcpp/include
-I/home/slyfox/dev/git/gcc/gcc/../libcody 
-I/home/slyfox/dev/git/gcc/gcc/../libdecnumber
-I/home/slyfox/dev/git/gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I/home/slyfox/dev/git/gcc/gcc/../libbacktrace   -o fortran/trans-io.o -MT
fortran/trans-io.o -MMD -MP -MF fortran/.deps/trans-io.TPo
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc: In function 'tree_node*
gfc_trans_transfer(gfc_code*)':
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_UNKNOWN' not handled in switch [-Werror=switch]
 2662 |                 switch (ref->u.ar.start[n]->expr_type)
      |                        ^
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_CONSTANT' not handled in switch [-Werror=switch]
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_VARIABLE' not handled in switch [-Werror=switch]
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_SUBSTRING' not handled in switch [-Werror=switch]
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_STRUCTURE' not handled in switch [-Werror=switch]
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_ARRAY' not handled in switch [-Werror=switch]
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_NULL' not handled in switch [-Werror=switch]
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_COMPCALL' not handled in switch [-Werror=switch]
/home/slyfox/dev/git/gcc/gcc/fortran/trans-io.cc:2662:24: error: enumeration
value 'EXPR_PPC' not handled in switch [-Werror=switch]
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:1202: fortran/trans-io.o] Error 1
make[3]: Leaving directory '/tmp/gb/gcc'
make[2]: *** [Makefile:5097: all-stage2-gcc] Error 2
make[2]: Leaving directory '/tmp/gb'
make[1]: *** [Makefile:26481: stage2-bubble] Error 2
make[1]: Leaving directory '/tmp/gb'
make: *** [Makefile:1100: all] Error 2

$ gcc/xgcc -Bgcc -v
Reading specs from gcc/specs
COLLECT_GCC=gcc/xgcc
COLLECT_LTO_WRAPPER=gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.0.0 20241129 (experimental) (GCC)

Reply via email to