FS#70930 - [gcc] internal compiler error.
Attached to Project:
Arch Linux
Opened by bartus (bartus) - Tuesday, 18 May 2021, 09:09 GMT
Last edited by freswa (frederik) - Friday, 11 February 2022, 11:54 GMT
Opened by bartus (bartus) - Tuesday, 18 May 2021, 09:09 GMT
Last edited by freswa (frederik) - Friday, 11 February 2022, 11:54 GMT
|
Details
Description: gcc:11 fail to build simple boilerplate
conversion code from `blender:cycles` against
`openimageio:2.2`
Error: `internal compiler error: in build_target_expr_with_type, at cp/tree.c:845` Additional info: * gcc:11.1.0 * openimageio:2.2.13.0 Steps to reproduce: * install `openimageio` * build this synthetic example: $ls oiio_test.cpp $cat oiio_test.cpp #include "OpenImageIO/typedesc.h" template<typename T> struct value_type_converter { using cycles_type = float; static constexpr OpenImageIO_v2_2::TypeDesc type_desc = OpenImageIO_v2_2::TypeFloat; static constexpr const char *type_name = "float (default)"; static cycles_type convert_value(T value) { return static_cast<float>(value); } }; $gcc oiio_test.cpp oiio_tmp.cpp:5:77: internal compiler error: in build_target_expr_with_type, at cp/tree.c:845 5 | static constexpr OpenImageIO_v2_2::TypeDesc type_desc = OpenImageIO_v2_2::TypeFloat; | ^~~~~~~~~ 0x1797368 internal_error(char const*, ...) ???:0 0x67f8f9 fancy_abort(char const*, int, char const*) ???:0 0x850ba4 store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) ???:0 0x70773d cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ???:0 0x7128bc grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*, bool, tree_node*, tree_node*) ???:0 0x7ce2fe c_parse_file() ???:0 0x8a252d c_common_parse_file() ???: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. |
This task depends upon
Closed by freswa (frederik)
Friday, 11 February 2022, 11:54 GMT
Reason for closing: Fixed
Additional comments about closing: gcc-11.2.0-2 in [testing]
Friday, 11 February 2022, 11:54 GMT
Reason for closing: Fixed
Additional comments about closing: gcc-11.2.0-2 in [testing]
Comment by bartus (bartus) -
Tuesday, 18 May 2021, 09:11 GMT
Comment by
Giancarlo Razzolini (grazzolini) -
Tuesday, 18 May 2021, 22:10 GMT
Comment by freswa (frederik) -
Thursday, 10 February 2022, 01:08 GMT
Comment by bartus (bartoszek) -
Thursday, 10 February 2022, 09:37 GMT
Perhaps some with gcc:bugzilla could push this upstream
(gcc:10.2.0 works fine) :?
It looks like this regression was already detected upstream:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100372
Could you please try to reproduce the issue on gcc-11.2.0-2 in
[testing]?
gcc:11.2.0 works fine here.