public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99543] New: ICE module compilation  ../../gcc/toplev.c:327
@ 2021-03-11  6:18 ryan.burn at gmail dot com
  2021-03-11  8:45 ` [Bug c++/99543] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ryan.burn at gmail dot com @ 2021-03-11  6:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99543
           Summary: ICE module compilation  ../../gcc/toplev.c:327
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan.burn at gmail dot com
  Target Milestone: ---

Here is the stacktrace.

It happened when I tried to compile a header module that imported another
header module:

// a.h
import <iostream>;



SUBCOMMAND: # //example/header-module:a_hdr [action 'Action
example/header-module/a.h.gcm', configuration:
86d23d2b5aedbeecfc6e6954ea9486ec39e9e40bcbc4b17cec46a06eed198d11, execution
platform: @local_config_platform//:host]
(cd
/root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/execroot/com_github_rnburn_bazel_cpp20_modules
&& \
  exec env - \
  bazel-out/k8-opt-exec-2B5CBBC6/bin/util/process_wrapper/process_wrapper --
/usr/local/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall
-Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer
'-std=c++0x'
-Ibazel-out/k8-fastbuild/bin/example/header-module/system/iostream-include -x
c++-header -fmodules-ts '-std=c++20' -fno-canonical-system-headers
-Wno-builtin-macro-redefined '-D__DATE__="redacted"'
'-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c
example/header-module/a.h
'-fmodule-mapper=bazel-out/k8-fastbuild/bin/example/header-module/a_hdr-module-map'
-iquote .)
INFO: From Action example/header-module/a.h.gcm:
example/header-module/a.h: internal compiler error: Segmentation fault
0x10a9ccf crash_signal
        ../../gcc/toplev.c:327
0x1c671d6 get_location_from_adhoc_loc(line_maps const*, unsigned int)
        ../../libcpp/line-map.c:257
0x9ff6dd module_state::write_location(bytes_out&, unsigned int)
        ../../gcc/cp/module.cc:15569
0xa01faf module_state::write_define(bytes_out&, cpp_macro const*, bool)
        ../../gcc/cp/module.cc:16337
0xa0340a module_state::write_macros(elf_out*, cpp_reader*, unsigned int*)
        ../../gcc/cp/module.cc:16839
0xa16218 module_state::write(elf_out*, cpp_reader*)
        ../../gcc/cp/module.cc:17713
0xa168f5 finish_module_processing(cpp_reader*)
        ../../gcc/cp/module.cc:19728
0x9aaa8b c_parse_final_cleanups()
        ../../gcc/cp/decl2.c:5170
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


gcc version
root@748001480fc4:/src# g++ --version
g++ (GCC) 11.0.0 20201218 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/99543] ICE module compilation  ../../gcc/toplev.c:327
  2021-03-11  6:18 [Bug c++/99543] New: ICE module compilation ../../gcc/toplev.c:327 ryan.burn at gmail dot com
@ 2021-03-11  8:45 ` rguenth at gcc dot gnu.org
  2021-03-12 23:18 ` ryan.burn at gmail dot com
  2021-03-12 23:18 ` ryan.burn at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-11  8:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-03-11
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Please try updating to a more recent snapshot.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/99543] ICE module compilation  ../../gcc/toplev.c:327
  2021-03-11  6:18 [Bug c++/99543] New: ICE module compilation ../../gcc/toplev.c:327 ryan.burn at gmail dot com
  2021-03-11  8:45 ` [Bug c++/99543] " rguenth at gcc dot gnu.org
@ 2021-03-12 23:18 ` ryan.burn at gmail dot com
  2021-03-12 23:18 ` ryan.burn at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ryan.burn at gmail dot com @ 2021-03-12 23:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from ryan.burn at gmail dot com ---
it worked with 

root@15a43977d8e1:/t/hdr-mod# g++ --version
g++ (GCC) 11.0.1 20210311 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/99543] ICE module compilation  ../../gcc/toplev.c:327
  2021-03-11  6:18 [Bug c++/99543] New: ICE module compilation ../../gcc/toplev.c:327 ryan.burn at gmail dot com
  2021-03-11  8:45 ` [Bug c++/99543] " rguenth at gcc dot gnu.org
  2021-03-12 23:18 ` ryan.burn at gmail dot com
@ 2021-03-12 23:18 ` ryan.burn at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ryan.burn at gmail dot com @ 2021-03-12 23:18 UTC (permalink / raw)
  To: gcc-bugs

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

ryan.burn at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-12 23:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11  6:18 [Bug c++/99543] New: ICE module compilation ../../gcc/toplev.c:327 ryan.burn at gmail dot com
2021-03-11  8:45 ` [Bug c++/99543] " rguenth at gcc dot gnu.org
2021-03-12 23:18 ` ryan.burn at gmail dot com
2021-03-12 23:18 ` ryan.burn at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).