Repository navigation
[GNATS 24963] Spurious diagnostic for an in-class initializer #128
jhsedg
started this conversation in
Issue Triage - General
Replies: 0 comments
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.
Customer bug ID
best/tests/doc/core_1_refresher.test/core_1_refresher.cpp, gnats/24693.C and gnats/_24693.C (full expanded case)
Description
[ellen@lin1 tmp]$ $CPFE --c++14 -tused --gnu_version=110100 inclass.reduced.C
"inclass.reduced.C", line 52: error: a member of type "const untracked_t"
cannot have an in-class initializer
static const T static_query_v = static_query;
^
detected during:
instantiation of "const T untracked_t::static_query_v [with E=int,
T=untracked_t]" at line 23
instantiation of class "static_query_default [with
Property=untracked_t]" at line 37
instantiation of class "can_query<, Property> [with
=int, Property=untracked_t]" at line 37
instantiation of class "can_query<, Property> [with
=int, Property=prefer_only]" at line 41
instantiation of class
"supportable_properties::is_valid_target<>
[with Prop=prefer_only, =int]" at line 46
instantiation of class "is_valid_target_executor [with
Props=prefer_only]" at line 61
1 error detected in the compilation of "inclass.reduced.C".
Notes
ellen, 2023-08-17:
This is for C++14 only.
All reactions