-
Notifications
You must be signed in to change notification settings - Fork 220
Open
Labels
Description
auto-reduced (treereduce-rust):
//@compile-flags: -frust-incomplete-and-experimental-compiler-do-not-use
#![no_core]
#[repr(C)]
#[derive(PartialEq, Eq, PartialOrd, Ord)]
union Value {
a: u64,
b: f64,
}original:
#![feature(no_core)]
#![no_core]
#[repr(C)]
#[derive(PartialEq, Eq, PartialOrd, Ord)]
union Value {
a: u64,
b: f64,
}Version information:
Command:
/home/matthias/vcs/github/gccrs/gccrs-build/gcc/crab1 -frust-incomplete-and-experimental-compiler-do-not-use
Program output
/tmp/icemaker_global_tempdir.7cxs1UbUnTLY/rustc_testrunner_tmpdir_reporting.qLe7U24Ri4hh/mvce.rs:4:1: error: derive(PartialEq) cannot be used on unions
4 | union Value {
| ^~~~~
/tmp/icemaker_global_tempdir.7cxs1UbUnTLY/rustc_testrunner_tmpdir_reporting.qLe7U24Ri4hh/mvce.rs:4:1: error: derive(PartialOrd) cannot be used on unions
crab1: internal compiler error: Segmentation fault
0x3097ef9 internal_error(char const*, ...)
../../gcc/diagnostic-global-context.cc:787
0x19c085f crash_signal
../../gcc/toplev.cc:325
0xea7c30 builtin_derive_item
../../gcc/rust/expand/rust-expand-visitor.cc:54
0xea7c30 Rust::ExpandVisitor::expand_inner_items(std::vector<std::unique_ptr<Rust::AST::Item, std::default_delete<Rust::AST::Item> >, std::allocator<std::unique_ptr<Rust::AST::Item, std::default_delete<Rust::AST::Item> > > >&)
../../gcc/rust/expand/rust-expand-visitor.cc:201
0xe65cdb Rust::Session::expansion(Rust::AST::Crate&, Rust::Resolver2_0::NameResolutionContext&)
../../gcc/rust/rust-session-manager.cc:1039
0xe73f9b Rust::Session::compile_crate(char const*)
../../gcc/rust/rust-session-manager.cc:698
/home/matthias/vcs/github/gccrs/gccrs-build/gcc/crab1 /tmp/icemaker_global_tempdir.7cxs1UbUnTLY/rustc_testrunner_tmpdir_reporting.qLe7U24Ri4hh/mvce.rs -o/tmp/icemaker_global_tempdir.7cxs1UbUnTLY/rustc_testrunner_tmpdir_reporting.qLe7U24Ri4hh/binaryname -frust-incomplete-and-experimental-compiler-do-not-use
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.
Reactions are currently unavailable