This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Compatibility: g++-2.7.2 and g++-2.95.2
- To: Ulrich dot Windl at rz dot uni-regensburg dot de
- Subject: Re: Compatibility: g++-2.7.2 and g++-2.95.2
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 3 Mar 2000 09:46:07 +0100
- CC: bug-gcc at gnu dot org
- References: <5394E770D71@rkdvmks1.ngate.uni-regensburg.de>
> In the documentation provided, the __FUNCTION__ is still documented.
> Do I need a different option to enable it?
No, they are still available. However, please have a look at cp/NEWS:
*** Changes in EGCS 1.0:
[...]
* __FUNCTION__ and __PRETTY_FUNCTION__ are now treated as variables by the
parser; previously they were treated as string constants. So code like
`printf (__FUNCTION__ ": foo")' must be rewritten to
`printf ("%s: foo", __FUNCTION__)'. This is necessary for templates.
Regards,
Martin