Skip to content

Commit 83dae76

Browse files
committed
Update regression test results
Looks like a Clang 12 update changed some diagnostics?
1 parent b6ad7e6 commit 83dae76

File tree

4 files changed

+40
-35
lines changed

4 files changed

+40
-35
lines changed

regression-tests/test-results/clang-12-c++20/pure2-last-use.cpp.output

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,31 @@ class issue_857_4 {
4949
pure2-last-use.cpp2:905:1: note: still within definition of 'issue_857_4' here
5050
namespace captures {
5151
^
52-
pure2-last-use.cpp2:279:272: error: no member named 'move_only_function' in namespace 'std'
53-
requires (std::is_convertible_v<CPP2_TYPEOF(f_), std::add_const_t<std::add_pointer_t<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(g_), std::add_const_t<std::add_pointer_t<int(cpp2::impl::in<int> in_)>>&> && std::is_convertible_v<CPP2_TYPEOF(mf_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(mg_), std::add_const_t<std::move_only_function<int(cpp2::impl::in<int> in_)>>&>)
54-
~~~~~^
55-
pure2-last-use.cpp2:279:299: error: expected expression
56-
requires (std::is_convertible_v<CPP2_TYPEOF(f_), std::add_const_t<std::add_pointer_t<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(g_), std::add_const_t<std::add_pointer_t<int(cpp2::impl::in<int> in_)>>&> && std::is_convertible_v<CPP2_TYPEOF(mf_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(mg_), std::add_const_t<std::move_only_function<int(cpp2::impl::in<int> in_)>>&>)
57-
^
58-
pure2-last-use.cpp2:279:304: error: use of address-of-label extension outside of a function body
59-
requires (std::is_convertible_v<CPP2_TYPEOF(f_), std::add_const_t<std::add_pointer_t<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(g_), std::add_const_t<std::add_pointer_t<int(cpp2::impl::in<int> in_)>>&> && std::is_convertible_v<CPP2_TYPEOF(mf_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(mg_), std::add_const_t<std::move_only_function<int(cpp2::impl::in<int> in_)>>&>)
60-
^
61-
pure2-last-use.cpp2:278:14: error: out-of-line definition of 'issue_857_4' does not match any declaration in 'issue_857_4'
62-
issue_857_4::issue_857_4(auto&& f_, auto&& g_, auto&& mf_, auto&& mg_)
63-
^~~~~~~~~~~
64-
pure2-last-use.cpp2:281:272: error: member initializer 'g' does not name a non-static data member or base class
65-
, g{ CPP2_FORWARD(g_) }
66-
^~~~~~~~~~~~~~~~~~~~~
67-
pure2-last-use.cpp2:282:272: error: member initializer 'mf' does not name a non-static data member or base class
68-
, mf{ CPP2_FORWARD(mf_) }
69-
^~~~~~~~~~~~~~~~~~~~~~~
70-
pure2-last-use.cpp2:283:272: error: member initializer 'mg' does not name a non-static data member or base class
71-
, mg{ CPP2_FORWARD(mg_) }{}
72-
^~~~~~~~~~~~~~~~~~~~~~~
73-
fatal error: too many errors emitted, stopping now [-ferror-limit=]
74-
20 errors generated.
52+
pure2-last-use.cpp2:279:179: error: expected variable name or 'this' in lambda capture list
53+
requires (std::is_convertible_v<CPP2_TYPEOF(f_), std::add_const_t<std::add_pointer_t<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(g_), std::add_const_t<std::add_pointer_t<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&> && std::is_convertible_v<CPP2_TYPEOF(mf_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(mg_), std::add_const_t<std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&>)
54+
^
55+
pure2-last-use.cpp2:1044:2: error: expected '>'
56+
}
57+
^
58+
pure2-last-use.cpp2:279:173: note: to match this '<'
59+
requires (std::is_convertible_v<CPP2_TYPEOF(f_), std::add_const_t<std::add_pointer_t<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(g_), std::add_const_t<std::add_pointer_t<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&> && std::is_convertible_v<CPP2_TYPEOF(mf_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(mg_), std::add_const_t<std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&>)
60+
^
61+
pure2-last-use.cpp2:1045:1: error: expected a type
62+
^
63+
pure2-last-use.cpp2:1044:2: error: expected '>'
64+
}
65+
^
66+
pure2-last-use.cpp2:279:154: note: to match this '<'
67+
requires (std::is_convertible_v<CPP2_TYPEOF(f_), std::add_const_t<std::add_pointer_t<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(g_), std::add_const_t<std::add_pointer_t<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&> && std::is_convertible_v<CPP2_TYPEOF(mf_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(mg_), std::add_const_t<std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&>)
68+
^
69+
pure2-last-use.cpp2:1045:1: error: expected a type
70+
^
71+
pure2-last-use.cpp2:1044:2: error: expected '>'
72+
}
73+
^
74+
pure2-last-use.cpp2:279:120: note: to match this '<'
75+
requires (std::is_convertible_v<CPP2_TYPEOF(f_), std::add_const_t<std::add_pointer_t<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(g_), std::add_const_t<std::add_pointer_t<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&> && std::is_convertible_v<CPP2_TYPEOF(mf_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(mg_), std::add_const_t<std::move_only_function<int([[maybe_unused]] cpp2::impl::in<int> unnamed_param_1)>>&>)
76+
^
77+
pure2-last-use.cpp2:1045:1: error: expected function body after function declarator
78+
^
79+
19 errors generated.

regression-tests/test-results/gcc-10-c++20/pure2-last-use.cpp.output

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ pure2-last-use.cpp2:266:7: note: candidates are: ‘issue_857_6& issue_857_6::op
102102
pure2-last-use.cpp2:266:7: note: ‘issue_857_6& issue_857_6::operator=(const issue_857_6&)’
103103
pure2-last-use.cpp2:272:14: note: ‘template<class auto:125> issue_857_6& issue_857_6::operator=(auto:125&&)’
104104
pure2-last-use.cpp2:266:7: note: ‘class issue_857_6’ defined here
105-
pure2-last-use.cpp2:279:272: error: ‘move_only_function’ is not a member of ‘std’
106-
pure2-last-use.cpp2:279:295: error: template argument 1 is invalid
107-
pure2-last-use.cpp2:279:299: error: expected primary-expression before ‘>’ token
108-
pure2-last-use.cpp2:279:304: error: label ‘std’ referenced outside of any function
109-
pure2-last-use.cpp2:279:307: error: expected ‘)’ before ‘::’ token
105+
pure2-last-use.cpp2:279:301: error: ‘move_only_function’ is not a member of ‘std’
106+
pure2-last-use.cpp2:279:324: error: template argument 1 is invalid
107+
pure2-last-use.cpp2:279:328: error: expected primary-expression before ‘>’ token
108+
pure2-last-use.cpp2:279:333: error: label ‘std’ referenced outside of any function
109+
pure2-last-use.cpp2:279:336: error: expected ‘)’ before ‘::’ token
110110
pure2-last-use.cpp2:280: confused by earlier errors, bailing out

source/reflect.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,9 +3315,9 @@ auto print(cpp2::impl::in<meta::type_declaration> t) -> void
33153315
auto noisy(cpp2::impl::in<meta::type_declaration> t) -> void
33163316
{
33173317
for (
3318-
auto const& m : CPP2_UFCS(get_members)(t) )
3319-
if ( CPP2_UFCS(is_function)(m)
3320-
&& !(CPP2_UFCS(has_name)(m, "operator=")))
3318+
auto const& m : CPP2_UFCS(get_members)(t) )
3319+
if ( CPP2_UFCS(is_function)(m)
3320+
&& !(CPP2_UFCS(has_name)(m, "operator=")))
33213321
{
33223322
auto mf {CPP2_UFCS(as_function)(m)};
33233323
if (CPP2_UFCS(has_compound_body)(mf)) {

source/reflect.h2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,10 +1612,10 @@ print: (t: meta::type_declaration) =
16121612
//
16131613
noisy: (t: meta::type_declaration) =
16141614
{
1615-
for t.get_members()
1616-
do (m)
1617-
if m.is_function()
1618-
&& !m.has_name("operator=")
1615+
for t.get_members()
1616+
do (m)
1617+
if m.is_function()
1618+
&& !m.has_name("operator=")
16191619
{
16201620
mf := m.as_function();
16211621
if mf.has_compound_body() {

0 commit comments

Comments
 (0)