public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99051] New: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc
@ 2021-02-10  6:19 boris at kolpackov dot net
  2021-03-04  9:15 ` [Bug c++/99051] " boris at kolpackov dot net
  2022-01-01  4:24 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: boris at kolpackov dot net @ 2021-02-10  6:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99051
           Summary: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: boris at kolpackov dot net
  Target Milestone: ---

cat <<EOF >hello.hxx
#pragma once

#if 1
import <string_view>;
#else
#include <string_view>
#endif

void say_hello (const std::string_view& name);
EOF

g++ -std=c++2a -fmodules-ts -fmodule-header -x c++-header
/path/to/include/c++/11.0.0/string_view
g++ -std=c++2a -fmodules-ts -fmodule-header -x c++-header hello.hxx 

hello.hxx: internal compiler error: Segmentation fault
0x1809473 crash_signal
        ../../gcc/gcc/toplev.c:327
0x2c2808b get_location_from_adhoc_loc(line_maps const*, unsigned int)
        ../../gcc/libcpp/line-map.c:257
0xc634c8 module_state::write_location(bytes_out&, unsigned int)
        ../../gcc/gcc/cp/module.cc:15600
0xc65c6f module_state::write_define(bytes_out&, cpp_macro const*, bool)
        ../../gcc/gcc/cp/module.cc:16368
0xc66f09 module_state::write_macros(elf_out*, cpp_reader*, unsigned int*)
        ../../gcc/gcc/cp/module.cc:16870
0xc69d65 module_state::write(elf_out*, cpp_reader*)
        ../../gcc/gcc/cp/module.cc:17747
0xc6ffe9 finish_module_processing(cpp_reader*)
        ../../gcc/gcc/cp/module.cc:19778
0xb8e905 c_parse_final_cleanups()
        ../../gcc/gcc/cp/decl2.c:5178
0xf10f4c c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1240

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

* [Bug c++/99051] [modules] ICE/SIGSEGV in get_location_from_adhoc_loc
  2021-02-10  6:19 [Bug c++/99051] New: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc boris at kolpackov dot net
@ 2021-03-04  9:15 ` boris at kolpackov dot net
  2022-01-01  4:24 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: boris at kolpackov dot net @ 2021-03-04  9:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Boris Kolpackov <boris at kolpackov dot net> ---
As of 11.0.1 20210304 (f3641ac70e) this no longer reproduces for me.

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

* [Bug c++/99051] [modules] ICE/SIGSEGV in get_location_from_adhoc_loc
  2021-02-10  6:19 [Bug c++/99051] New: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc boris at kolpackov dot net
  2021-03-04  9:15 ` [Bug c++/99051] " boris at kolpackov dot net
@ 2022-01-01  4:24 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-01  4:24 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 99915.

*** This bug has been marked as a duplicate of bug 99915 ***

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

end of thread, other threads:[~2022-01-01  4:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10  6:19 [Bug c++/99051] New: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc boris at kolpackov dot net
2021-03-04  9:15 ` [Bug c++/99051] " boris at kolpackov dot net
2022-01-01  4:24 ` pinskia at gcc dot gnu.org

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).