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:
parent
19e7881c81
commit
a3eab6194f
@ -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.
|
||||
|
@ -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);
|
||||
|
8
gcc/testsuite/g++.old-deja/g++.other/fnname1.C
Normal file
8
gcc/testsuite/g++.old-deja/g++.other/fnname1.C
Normal 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__;
|
||||
}
|
Loading…
Reference in New Issue
Block a user