[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#534738: g++-4.3: Don't warn on multi-line comment if next line would have been a comment anyway



Package: g++-4.3
Version: 4.3.3-13
Severity: wishlist

The multi-line comment warning makes it difficult to comment out a multi-line 
macro definition using C++ style without getting a warning:

daniel@frobozz:/tmp$ cat test.cc
// #define doit(x) \
//    do { \
//      ab(x); \
//      cd(x); \
//    } while(0)

int test() {
  // doit(3);
  return 5;
}
daniel@frobozz:/tmp$ g++ -c -Wall test.cc
test.cc:1:1: warning: multi-line comment
-- 
Daniel Schepler




Reply to: