[PATCH] D25816: Use descriptive message if list initializer is incorrectly parenthesized.

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 21 04:21:47 PDT 2016


arphaman added a subscriber: rsmith.
arphaman added a comment.

LGTM, I added Richard in case he has something to add.

> I chose to retain current clang behavior and reject questionable code. GCC patch that introduced this message explains using warning by some uncertainty, 5 years passed, I think the standard is stable in viewpoint on such usage.

Thanks for the detailed explanation, I wasn't sure if GCC's was behaving according to the standard or not.


https://reviews.llvm.org/D25816





More information about the cfe-commits mailing list