-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Labels
Description
Code
struct B<const M: u32> {}
impl<const M: u32> B<M> {
const M: u32 = M;
}Version information
bc2a3e6
Command
./gcc/crab1 ../test.rs -frust-debug -frust-dump-ast-pretty -Warray-bounds -dumpbase ../test.rs -mtune=generic -march=x86-64 -O0 -version -fdump-tree-gimple -o test.s -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -frust-incomplete-and-experimental-compiler-do-not-use
Program output
crab1: internal compiler error: in check_decl, at rust/checks/lints/rust-lint-unused-var.cc:28
0x29abe86 internal_error(char const*, ...)
../../gccrs/gcc/diagnostic-global-context.cc:517
0xb48036 fancy_abort(char const*, int, char const*)
../../gccrs/gcc/diagnostic.cc:1803
0x919e8b check_decl
../../gccrs/gcc/rust/checks/lints/rust-lint-unused-var.cc:28
0xf62e6b Rust::Analysis::UnusedVariables::Lint(Rust::Compile::Context&)
../../gccrs/gcc/rust/checks/lints/rust-lint-unused-var.cc:93
0xca283c Rust::Session::compile_crate(char const*)
../../gccrs/gcc/rust/rust-session-manager.cc:739
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