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,
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
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
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
4 matches
Mail list logo