Skip to content

Commit 4e0af39

Browse files
committed
adding a check for contracts-nonattr flag
1 parent 2c19edb commit 4e0af39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcc/cp/class.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3227,6 +3227,7 @@ check_for_override (tree decl, tree ctype)
32273227
TYPE_HAS_NONTRIVIAL_DESTRUCTOR (ctype) = true;
32283228

32293229
if (DECL_HAS_CONTRACTS_P(decl)
3230+
&& flag_contracts_nonattr
32303231
&& flag_contract_nonattr_inheritance_mode
32313232
== CONTRACT_INHERITANCE_NONE)
32323233
{

0 commit comments

Comments
 (0)