[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Wed Aug 14 14:44:55 2019 New Revision: 274483 URL: https://gcc.gnu.org/viewcvs?rev=274483&root=gcc&view=rev Log: PR c++/91391 - bogus -Wcomma-subscript warning. * parse

[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-07 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 --- Comment #5 from Stephan Bergmann --- (In reply to Stephan Bergmann from comment #0) [...] > template-parameter-list, and I wonder whether it should warn about a > (hypothetical) comma expression in a call to an overloaded operator [] at > all

[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 --- Comment #4 from Jakub Jelinek --- --- gcc/cp/parser.c.jj 2019-08-07 09:24:36.099089282 +0200 +++ gcc/cp/parser.c 2019-08-07 20:26:47.669663334 +0200 @@ -2102,7 +2102,7 @@ static cp_expr cp_parser_assignment_expr static enum tree_code cp

[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 --- Comment #2 from Marek Polacek --- ...except when it's: void fn (int *a, int b, int c) { a[b < c, b > c]; // should warn }

[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 Marek Polacek changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRME