Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Sven-Hendrik Haase (Svenstaro) - Tuesday, 18 May 2021, 21:33 GMT
Task Type Bug Report
Category Packages: Core
Status Assigned
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

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

Comment by bartus (bartus) - Tuesday, 18 May 2021, 09:11 GMT
Perhaps some with gcc:bugzilla could push this upstream (gcc:10.2.0 works fine) :?
Comment by Giancarlo Razzolini (grazzolini) - Tuesday, 18 May 2021, 22:10 GMT
It looks like this regression was already detected upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100372

Loading...