Re: possibly a bug in g++

2001-12-11 Thread Alexei Khlebnikov
Ugh, sorry for late answer. I was ill and thinked about this subject. Martin v. Loewis wrote: Please answer somebody wether it is a bug and wether I should submit it to GNATS. I believe this is not a bug, because there are no const-qualified function types in C++. If you don't agree,

Re: possibly a bug in g++

2001-12-11 Thread Martin v. Loewis
In my opinion, tfunc_t is a pointer to function, not reference. This is because the function name (without a context) is a pointer to that function, not a reference. If I am wrong, please, let me know. You are wrong. tfunc_t is neither of type pointer to function nor of type reference to

Bug#123468: gcc: asserts with side effects

2001-12-11 Thread Anthony DeRobertis
Package: gcc Version: 2:2.95.4-8 Severity: wishlist -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I realize this is probably implemented easily, but a warning about asserts with obvious side effects would be nice. For example: assert(ptr = malloc(...)) /* programmer didn't

static const int optimization fails in conditional expressions

2001-12-11 Thread James Jurach
Submitter-Id: net Originator:James Jurach Organization: FundsXpress Confidential: no Synopsis: static const int optimization fails in conditional expressions Severity: serious Priority: medium Category: c++ Class: sw-bug Release: 3.0.3 20011209 (Debian