Repository navigation
C++-generating back end asserts on a compound literal that invokes a constructor #614
jakub-labenski
started this conversation in
Issue Triage - Compilation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Summary
In Clang emulation mode,
cpfe-cpaborts when generating C++ for a compound literal that invokes a constructor and is used as the right-hand operand of an assignment. It should emit the compound literal with its constructor arguments and complete normally.Reproducing Source Code
Command-line Options
cpfe-cp --clang --c++17 --gen_c_file_name=repro.out.cpp repro.cpp
Type of Issue
[Front End] This code SHOULD compile with these options.
Additional Details
The compiler reports an internal assertion failure in
gen_compound_literalincp_gen_be.c. This is related to EDGcpfe/19463, which handled constructor-backed compound literals in variable initializers throughgen_dynamic_init. The assignment case reachesgen_compound_literaldirectly throughgen_temp_init.Reproducing (Standard) Configuration(s)
linux-gcc-debug
Reproducing (Non-standard) Configuration
No response
I acknowledge that:
LICENSE.txtfile in my.zipor.tar.gzupload. If I included aLICENSE.txtfile, any tests created using the reproducing source code will be governed by the terms of the license I provided instead.All reactions