Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 675379 Details for
Bug 757150
sys-devel/gcc-10.2.0-r3: internal compiler error: in output_constructor_regular_field, at varasm.c:5214
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reduced testcase
testcase.ii (text/plain), 2.14 KB, created by
Stephan Hartmann (RETIRED)
on 2020-11-27 15:01:18 UTC
(
hide
)
Description:
reduced testcase
Filename:
MIME Type:
Creator:
Stephan Hartmann (RETIRED)
Created:
2020-11-27 15:01:18 UTC
Size:
2.14 KB
patch
obsolete
>template <typename, typename _T2> struct pair { > int first; > _T2 second; > template <typename _U1, typename _U2> > constexpr pair(pair<_U1, _U2> __p) : first(), second(__p.second) {} > template <typename _U1, typename _U2> > constexpr pair(_U1, _U2 __y) : first(), second(__y) {} >}; >struct less {}; >template <typename _Tp, _Tp> struct integer_sequence {}; >template <typename _Tp, _Tp _Num> >using make_integer_sequence = integer_sequence<_Tp, __integer_pack(_Num)...>; >template <long... _Idx> >using index_sequence = integer_sequence<unsigned long, _Idx...>; >template <long _Num> >using make_index_sequence = make_integer_sequence<unsigned long, _Num>; >template <typename _Tp> struct array { _Tp _M_elems; }; >class BasicStringPiece { >public: > constexpr BasicStringPiece(const char *str) : ptr_(str), length_() {} > const char *ptr_; > long length_; >}; >struct sorted_unique_t { >} sorted_unique; >template <typename T, int N, unsigned long... I> >constexpr array<pair<const int, BasicStringPiece>> >ToArrayImpl(T (&data)[N], index_sequence<I...>) { > return {data[I]...}; >} >template <typename, typename T, int N> >constexpr array<pair<const int, BasicStringPiece>> ToArray(T (&data)[N]) { > return ToArrayImpl(data, make_index_sequence<N>()); >} >template <class> class flat_tree { >public: > using key_compare = less; > using container_type = array<pair<const int, BasicStringPiece>>; > constexpr flat_tree(sorted_unique_t, container_type &&); > container_type body_; > [[no_unique_address]] key_compare comp_; >}; >template <class Container> >constexpr flat_tree<Container>::flat_tree(sorted_unique_t, > container_type &&items) > : body_(items), comp_() {} >class flat_map : flat_tree<int> { > using tree = flat_tree; > tree::tree; >}; >template <class, class, long, class> using fixed_flat_map = flat_map; >template <class, class, int N> >constexpr fixed_flat_map<int, BasicStringPiece, N, less> >MakeFixedFlatMap(pair<int, BasicStringPiece>(&&data)[N]) { > using FixedFlatMap = fixed_flat_map<int, BasicStringPiece, N, less>; > return FixedFlatMap(sorted_unique, ToArray<int>(data)); >} >void Get() { static auto kSchemas = MakeFixedFlatMap<int, int>({{"", ""}}); }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 757150
: 675379