https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121528
Bug ID: 121528
Summary: GCC -Wcomment shouldn't warn about multiline comments
if the next line looks like a comment
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nikolasklauser at berlin dot de
Target Milestone: ---
GCC with -Wcomment currently warns on code like
```
// \
// lhs.assign(rhs.begin(), rhs.end());
// \
void func() {}
```
in both cases, even though it's clear in the first case that both lines are
comments. Clang only warns about the second case:
https://godbolt.org/z/aMTYnqvnq