diff options
author | Jason Merrill <jason@redhat.com> | 2017-01-08 01:36:10 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2017-01-08 01:36:10 -0500 |
commit | 38285dd71996a0020d3bd24fb0c366e8859368af (patch) | |
tree | 602aa0c8a01de98b3ea3c63aa538579a42858263 /gcc/cp/parser.h | |
parent | c3e50bc4e45a3429b8a97bee03dd967cf0c7311f (diff) | |
download | gcc-38285dd71996a0020d3bd24fb0c366e8859368af.zip gcc-38285dd71996a0020d3bd24fb0c366e8859368af.tar.gz gcc-38285dd71996a0020d3bd24fb0c366e8859368af.tar.bz2 |
PR c++/78948 - instantiation from discarded statement
PR c++/78948 - instantiation from discarded statement
* parser.h (struct cp_parser): Remove in_discarded_stmt field.
* cp-tree.h (in_discarded_stmt): Declare it.
(struct saved_scope): Add discarded_stmt bitfield.
(in_discarded_stmt): New macro.
* decl2.c (mark_used): Check it.
* parser.c (cp_parser_selection_statement): Adjust.
(cp_parser_jump_statement): Adjust.
From-SVN: r244206
Diffstat (limited to 'gcc/cp/parser.h')
-rw-r--r-- | gcc/cp/parser.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/cp/parser.h b/gcc/cp/parser.h index f242f4c..0994e1e 100644 --- a/gcc/cp/parser.h +++ b/gcc/cp/parser.h @@ -336,10 +336,6 @@ struct GTY(()) cp_parser { a local class. */ bool in_function_body; - /* TRUE if we are parsing a C++17 discarded statement (the non-taken branch - of an if constexpr). */ - bool in_discarded_stmt; - /* Nonzero if we're processing a __transaction_atomic or __transaction_relaxed statement. */ unsigned char in_transaction; |