public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102600] New: [modules] ICE Segmentation fault during GIMPLE pass evrp
@ 2021-10-04 22:16 johelegp at gmail dot com
  2021-10-05  6:52 ` [Bug c++/102600] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: johelegp at gmail dot com @ 2021-10-04 22:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102600
           Summary: [modules] ICE Segmentation fault during GIMPLE pass
                    evrp
           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: ---

main.cpp:
```C++
import<cstddef>;
void push(std::byte) {}
void write(char v) { push(static_cast<std::byte>(v)); }
int main() { write(char{}); }
```

Compile commands:
```
gcc -std=c++23 -O3 -fmodules-ts -x c++-system-header -c cstddef
gcc -std=c++23 -O3 -fmodules-ts -c main.cpp
```

Output:
```
during GIMPLE pass: evrp
main.cpp: In function ‘void write(char)’:
main.cpp:4:29: internal compiler error: Segmentation fault
    4 | int main() { write(char{}); }
      |                             ^
0x2068f9d internal_error(char const*, ...)
        ???:0
0xca4c68 wi::to_wide(tree_node const*)
        ???:0
0x1f85553 operator_cast::inside_domain_p(generic_wide_int<wide_int_storage>
const&, generic_wide_int<wide_int_storage> const&, irange const&) const
        ???:0
0x1f8c51d operator_cast::fold_pair(irange&, unsigned int, irange const&, irange
const&) const
        ???:0
0x1f8cb6a operator_cast::fold_range(irange&, tree_node*, irange const&, irange
const&, tree_code) const
        ???:0
0x1e723b0 fold_using_range::range_of_range_op(irange&, gimple*, fur_source&)
        ???:0
0x1e73142 fold_using_range::fold_stmt(irange&, gimple*, fur_source&,
tree_node*)
        ???:0
0x1e67484 gimple_ranger::range_of_stmt(irange&, gimple*, tree_node*)
        ???:0
0x1e681ff gimple_ranger::range_of_expr(irange&, tree_node*, gimple*)
        ???:0
0x14ec2f1 range_query::value_of_expr(tree_node*, gimple*)
        ???:0
0x1e7bda8 rvrp_folder::value_of_expr(tree_node*, gimple*)
        ???:0
0x138eebe substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
        ???:0
0x1e37697 dom_walker::walk(basic_block_def*)
        ???:0
0x138e03d substitute_and_fold_engine::substitute_and_fold(basic_block_def*)
        ???: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] 5+ messages in thread

end of thread, other threads:[~2022-10-25 17:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 22:16 [Bug c++/102600] New: [modules] ICE Segmentation fault during GIMPLE pass evrp johelegp at gmail dot com
2021-10-05  6:52 ` [Bug c++/102600] " rguenth at gcc dot gnu.org
2021-10-07  3:24 ` johelegp at gmail dot com
2022-10-25 17:41 ` cvs-commit at gcc dot gnu.org
2022-10-25 17:48 ` ppalka 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).