* name-lookup.c (get_std_name_hint): Add std::byte.

From-SVN: r279471
This commit is contained in:
Jason Merrill 2019-12-17 16:45:19 -05:00 committed by Jason Merrill
parent 775670d792
commit 490a091fa7
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2019-12-17 Jason Merrill <jason@redhat.com>
* name-lookup.c (get_std_name_hint): Add std::byte.
2019-12-17 Jakub Jelinek <jakub@redhat.com>
PR c++/59655

View File

@ -5641,6 +5641,8 @@ get_std_name_hint (const char *name)
/* <condition_variable>. */
{"condition_variable", "<condition_variable>", cxx11},
{"condition_variable_any", "<condition_variable>", cxx11},
/* <cstddef>. */
{"byte", "<cstddef>", cxx17},
/* <deque>. */
{"deque", "<deque>", cxx98},
/* <forward_list>. */

View File

@ -0,0 +1,3 @@
std::byte b; // { dg-error "byte" }
// { dg-message "cstddef" "" { target c++17 } .-1 }
// { dg-message "C..17" "" { target c++14_down } .-2 }