public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102598] New: [modules] ICE in pp_string, at pretty-print.c
@ 2021-10-04 19:17 johelegp at gmail dot com
  2021-10-04 19:21 ` [Bug c++/102598] " johelegp at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: johelegp at gmail dot com @ 2021-10-04 19:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102598
           Summary: [modules] ICE in pp_string, at pretty-print.c
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/3rGTTr6jE.

write.cpp:
```C++
export module write;
export void write(const auto &v) {}
```

main.cpp:
```C++
import write;
int main() { write(char{}); }
```

Compile commands:
```
gcc -Wall -Wextra -fmodules-ts -std=c++23 -c write.cpp
gcc -Wall -Wextra -fmodules-ts -std=c++23 -c main.cpp
```

Output:
```
In module write, imported at main.cpp:1:
in pp_string, at pretty-print.c:1827
0x2068f9d internal_error(char const*, ...)
        ???:0
0x973872 fancy_abort(char const*, int, char const*)
        ???:0
0x2086861 pp_format(pretty_printer*, text_info*)
        ???:0
0x2087d92 pp_verbatim(pretty_printer*, char const*, ...)
        ???:0
0x2067adf diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ???:0
0x2068720 warning_at(unsigned int, int, char const*, ...)
        ???:0
0xca067c do_warn_unused_parameter(tree_node*)
        ???:0
0xa3ba82 finish_function(bool)
        ???:0
0xb77dfb instantiate_decl(tree_node*, bool, bool)
        ???:0
0xb9b883 instantiate_pending_templates(int)
        ???:0
0xa50e3c c_parse_final_cleanups()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.
```

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

* [Bug c++/102598] [modules] ICE in pp_string, at pretty-print.c
  2021-10-04 19:17 [Bug c++/102598] New: [modules] ICE in pp_string, at pretty-print.c johelegp at gmail dot com
@ 2021-10-04 19:21 ` johelegp at gmail dot com
  2022-03-24  2:47 ` johelegp at gmail dot com
  2024-02-11 14:00 ` nshead at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: johelegp at gmail dot com @ 2021-10-04 19:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
Attempts to reduce another wrong-code bug lead to this.

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

* [Bug c++/102598] [modules] ICE in pp_string, at pretty-print.c
  2021-10-04 19:17 [Bug c++/102598] New: [modules] ICE in pp_string, at pretty-print.c johelegp at gmail dot com
  2021-10-04 19:21 ` [Bug c++/102598] " johelegp at gmail dot com
@ 2022-03-24  2:47 ` johelegp at gmail dot com
  2024-02-11 14:00 ` nshead at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: johelegp at gmail dot com @ 2022-03-24  2:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
Another test case: https://godbolt.org/z/Gsfx56GM9.

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

* [Bug c++/102598] [modules] ICE in pp_string, at pretty-print.c
  2021-10-04 19:17 [Bug c++/102598] New: [modules] ICE in pp_string, at pretty-print.c johelegp at gmail dot com
  2021-10-04 19:21 ` [Bug c++/102598] " johelegp at gmail dot com
  2022-03-24  2:47 ` johelegp at gmail dot com
@ 2024-02-11 14:00 ` nshead at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: nshead at gcc dot gnu.org @ 2024-02-11 14:00 UTC (permalink / raw)
  To: gcc-bugs

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

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
           Assignee|unassigned at gcc dot gnu.org      |nshead at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=113580
                 CC|                            |nshead at gcc dot gnu.org
   Target Milestone|---                         |14.0

--- Comment #3 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Fixed with r14-8462-gec57d183d35412.

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

end of thread, other threads:[~2024-02-11 14:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 19:17 [Bug c++/102598] New: [modules] ICE in pp_string, at pretty-print.c johelegp at gmail dot com
2021-10-04 19:21 ` [Bug c++/102598] " johelegp at gmail dot com
2022-03-24  2:47 ` johelegp at gmail dot com
2024-02-11 14:00 ` nshead 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).