|
From: Greg C. <chi...@co...> - 2006-01-14 10:14:21
|
--- file 'line_bignum.cpp' begins ---
#include <iostream>
#include <ostream>
int main()
{
std::cerr
<< "What line is this?\m"
;
}
--- file 'line_bignum.cpp' ends ---
$/MinGW-20050120/bin/g++ -std=c++98 -pedantic line_bignum.cpp
line_bignum.cpp:4294923156:1: warning: unknown escape sequence '\m'
$/MinGW-20050827/bin/g++ -std=c++98 -pedantic line_bignum.cpp
line_bignum.cpp:4294923039:1: warning: unknown escape sequence '\m'
(That's 3.4.2 and 3.4.4, respectively; I haven't grabbed 3.4.5 yet.)
This seems sensitive to the exact combination of compiler flags,
and to the exact layout of the logical line of code across three
physical lines.
I find some similar-seeming reports in bugzilla, this one being
the closest:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24375
but this testcase's diagnostic seems more pixilated. Is it distinct
enough to file a report?
|