Skip to content

Commit

Permalink
* c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
Browse files Browse the repository at this point in the history
	for no_unique_address.

	* g++.dg/cpp2a/feat-cxx2a.C: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265034 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jakub committed Oct 11, 2018
1 parent 7613bec commit 37c22fd
Show file tree
Hide file tree
Showing 4 changed files with 455 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/c-family/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-10-11 Jakub Jelinek <[email protected]>

* c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
for no_unique_address.

2018-10-09 David Malcolm <[email protected]>

* c-common.c (c_option_controlling_cpp_error): Rename to...
Expand Down
2 changes: 1 addition & 1 deletion gcc/c-family/c-lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ c_common_has_attribute (cpp_reader *pfile)
|| is_attribute_p ("fallthrough", attr_name))
result = 201603;
else if (is_attribute_p ("no_unique_address", attr_name))
result = 20180312;
result = 201803;
if (result)
attr_name = NULL_TREE;
}
Expand Down
2 changes: 2 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2018-10-11 Jakub Jelinek <[email protected]>

* g++.dg/cpp2a/feat-cxx2a.C: New test.

PR c++/87547
* g++.dg/rtti/typeid12.C: New test.

Expand Down
Loading

0 comments on commit 37c22fd

Please sign in to comment.