File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -372,14 +372,14 @@ template<typename T> struct TemplateStruct {};
372
372
class FriendClassesWithAttributes {
373
373
// We allow GNU-style attributes here
374
374
template <class _Tp , class _Alloc > friend class __attribute__ ((__type_visibility__(" default" ))) vector;
375
- template <class _Tp , class _Alloc > friend class __declspec (code_seg(" whatever" )) vector2;
375
+ template <class _Tp , class _Alloc > friend class __declspec (code_seg(" foo, whatever" )) vector2;
376
376
// But not C++11 ones
377
377
template <class _Tp , class _Alloc > friend class [[]] vector3; // expected-error {{an attribute list cannot appear here}}
378
378
template <class _Tp , class _Alloc > friend class [[clang::__type_visibility__((" default" ))]] vector4; // expected-error {{an attribute list cannot appear here}}
379
379
380
380
// Also allowed
381
381
friend struct __attribute__ ((__type_visibility__(" default" ))) TemplateStruct<FriendClassesWithAttributes>;
382
- friend struct __declspec (code_seg(" whatever" )) TemplateStruct<FriendClassesWithAttributes>;
382
+ friend struct __declspec (code_seg(" foo, whatever" )) TemplateStruct<FriendClassesWithAttributes>;
383
383
friend struct [[]] TemplateStruct<FriendClassesWithAttributes>; // expected-error {{an attribute list cannot appear here}}
384
384
friend struct [[clang::__type_visibility__(" default" )]] TemplateStruct<FriendClassesWithAttributes>; // expected-error {{an attribute list cannot appear here}}
385
385
};
You can’t perform that action at this time.
0 commit comments