[Bug c++/107178] Diagnosis for colon vs semi-colon in a member function declaration

2022-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107178 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > (In reply to Jonathan Wakely from comment #3)You'd need to change "T > foo():" to "int foo:N" i.e. change the type, remove the parens, and add a > constant f

[Bug c++/107178] Diagnosis for colon vs semi-colon in a member function declaration

2022-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107178 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > (In reply to Andrew Pinski from comment #1) > > At least GCC points out the colon and even suggest you started a bitfield > > which is what a colon normally

[Bug c++/107178] Diagnosis for colon vs semi-colon in a member function declaration

2022-10-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107178 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/107178] Diagnosis for colon vs semi-colon in a member function declaration

2022-10-06 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107178 --- Comment #2 from Jeremy R. --- The easy solution is to mention both the bitfield and "hey maybe you meant to use a ;"

[Bug c++/107178] Diagnosis for colon vs semi-colon in a member function declaration

2022-10-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107178 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Severity|normal