This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++ Patch] PR 51064


Hi,

we emit spurious -Wparentheses warnings for template arguments, evidently because we are not propagating TREE_NO_WARNING during tsubstitution.

I'm fixing the problem in a straightforward way, by using the same idiom already used elsewhere: call build_x_binary_op and then propagate TREE_NO_WARNING to the resulting tree before returning it. The testcase is somewhat extended vs that in the PR: I wanted to exercise the warning a bit more and double check that we are still producing it when in order.

Tested x86_64-linux.

Thanks,
Paolo.

///////////////////////

Attachment: CL_51064
Description: Text document

Attachment: patch_51064
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]