decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__ and its ilk.

* decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
	and its ilk.

From-SVN: r40485
This commit is contained in:
Mark Mitchell 2001-03-15 03:37:14 +00:00 committed by Mark Mitchell
parent 19e7881c81
commit a3eab6194f
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-03-14 Mark Mitchell <mark@codesourcery.com>
* decl.c (cp_make_fnname_decl): Set DECL_IGNORED_P on __FUNCTION__
and its ilk.
2001-03-14 Mark Mitchell <mark@codesourcery.com>
* class.c (build_clone): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.

View File

@ -6609,6 +6609,7 @@ cp_make_fname_decl (id, name, type_dep)
DECL_SOURCE_LINE (decl) = 0;
DECL_ARTIFICIAL (decl) = 1;
DECL_IN_SYSTEM_HEADER (decl) = 1;
DECL_IGNORED_P (decl) = 1;
pushdecl (decl);
if (processing_template_decl)
decl = push_template_decl (decl);

View File

@ -0,0 +1,8 @@
// Build don't run:
// Origin: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
// Special g++ Options: -g
int main ()
{
const char *s = __FUNCTION__;
}