Skip to content

Commit

Permalink
Limit workaround for Clang bug to __clang_major__ <= 7
Browse files Browse the repository at this point in the history
The bug https://bugs.llvm.org/show_bug.cgi?id=33222 is now fixed on
Clang trunk, so the workaround won't be needed for Clang 8.0 and later.

	* include/std/variant (variant) [__clang__]: Limit workaround to
	Clang 7 and older.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264271 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
redi committed Sep 13, 2018
1 parent 23ea555 commit a9267d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-09-13 Jonathan Wakely <[email protected]>

* include/std/variant (variant) [__clang__]: Limit workaround to
Clang 7 and older.

2018-09-11 Jonathan Wakely <[email protected]>

PR libstdc++/87278
Expand Down
2 changes: 1 addition & 1 deletion libstdc++-v3/include/std/variant
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ namespace __variant

#undef _VARIANT_RELATION_FUNCTION_TEMPLATE

#ifdef __clang__
#if defined(__clang__) && __clang_major__ <= 7
public:
using _Base::_M_u; // See https://bugs.llvm.org/show_bug.cgi?id=31852
private:
Expand Down

0 comments on commit a9267d6

Please sign in to comment.