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

Simon Sobisch <simonsobisch at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |15.2.1
           Keywords|                            |ice-on-invalid-code
                 CC|                            |jklowden at gcc dot gnu.org

--- Comment #1 from Simon Sobisch <simonsobisch at gnu dot org> ---
GCC 15.x works fine, gcc master raises the following

<source>:11:25: error: cannot pass 'xxxxxxxxxx' BY REFERENCE [-Wcall-literal]
   11 | ENTRY 'myENTRY01' USING 'xxxxxxxxxx'.
      |                         ^~~~~~~~~~~~~
<source>:11:1: internal compiler error: tree_type_from_field_type: Invalid
field type FldLiteralA:
   11 | ENTRY 'myENTRY01' USING 'xxxxxxxxxx'.
      | ^~~~~~
0x25e3128 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x25d4258 emit_diagnostic_valist(diagnostics::kind, unsigned long,
diagnostics::option_id, char const*, __va_list_tag (*) [1])
        ???:0
0xb9a2fe cbl_internal_error(char const*, ...)
        ???:0
0xb29dd2 yyparse()
        ???:0
0xb9b364 cobol_parse_files(int, char const**)
        ???:0
/cefs/a7/a71052b84fef704045891049_gcc-trunk-20260209/bin/../libexec/gcc/x86_64-linux-gnu/16.0.1/cobol1
<source> -quiet -dumpdir /app/output.s- -dumpbase example.cob -dumpbase-ext
.cob -main=<source> -mtune=generic -march=x86-64 -g -o /tmp/ccpDbofD.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


note: I'm quite sure that -freport-bug still does not work with the COBOL
frontend, in theory there should be a bug item here for that as well

Reply via email to