Re: Error message formatting feature request [C++]

2010-09-01 Thread Manuel López-Ibáñez
2010/9/1 Jeremiah Willcock : > > My feature request is to have the comma between "T = x" and "typename > T::type = int" replaced by a semicolon.  In larger programs, the types given > in the error message often themselves contain commas, while they do not > typically contain semicolons.  Thus, this

Re: Error message formatting feature request

2010-09-01 Thread Ian Lance Taylor
Jeremiah Willcock writes: > When compiling a program such as: > > template > void foo(T, typename T::type c) {c.y();} > struct x {typedef int type;}; > void f() {foo(x(), 3);} > > GCC 4.5.0 (correctly) produces the error message: > > foo.cpp: In function ‘void foo(T, typename T::type) [with T =

Error message formatting feature request

2010-09-01 Thread Jeremiah Willcock
When compiling a program such as: template void foo(T, typename T::type c) {c.y();} struct x {typedef int type;}; void f() {foo(x(), 3);} GCC 4.5.0 (correctly) produces the error message: foo.cpp: In function ‘void foo(T, typename T::type) [with T = x, typename T::type = int]’: foo.cpp:4:21: