[Bug c++/21930] New: [4.1 regression] pretty printer confusion

2005-06-06 Thread reichelt at gcc dot gnu dot org
On mainline I get a hosed error message for the following invalid code snippet: templateint struct A {}; templateint N void foo(const AN a) { -AN(a); } void bar() { foo(A0()); }

Re: [Bug c++/21930] New: [4.1 regression] pretty printer confusion

2005-06-06 Thread Gabriel Dos Reis
reichelt at gcc dot gnu dot org [EMAIL PROTECTED] writes: | The error message reads: | | bug.cc: In function 'void foo(const AN) [with int N = 0]': | bug.cc:7: instantiated from here | bug.cc:3: error: no match for 'operator-' in '-((const A0)#'convert_expr' | not supported by