[Bug c++/105470] ranged for loop whitespace parsing

2022-05-04 Thread roland at logikalsolutions dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105470 --- Comment #11 from Roland Hughes --- (In reply to Marek Polacek from comment #9) > (In reply to Roland Hughes from comment #8) > > (In reply to Marek Polacek from comment #1) > > > Can you please provide a stand-alone test case? > > > > I

[Bug c++/105470] ranged for loop whitespace parsing

2022-05-04 Thread roland at logikalsolutions dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105470 --- Comment #10 from Roland Hughes --- (In reply to Marek Polacek from comment #1) > > The warning is completely correct, and the code should be fixed. > > for ( const std::pair : someMap ) > > This iterates over a map, with values of type:

[Bug c++/105470] ranged for loop whitespace parsing

2022-05-04 Thread roland at logikalsolutions dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105470 --- Comment #8 from Roland Hughes --- (In reply to Marek Polacek from comment #1) > Can you please provide a stand-alone test case? I will work on this over the weekend.

[Bug c++/105470] New: ranged for loop whitespace parsing

2022-05-03 Thread roland at logikalsolutions dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105470 Bug ID: 105470 Summary: ranged for loop whitespace parsing Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++