aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-07-04 13:48:02 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-07-04 13:48:02 -0400
commit8885e914f3788544768540affbc0d30cb49ba963 (patch)
tree05a703e4910ce953e5268a29ba0bd59fc9b0a922 /gcc
parentd5b7dccd053c2af2d96f6cc46b2c2a8960577926 (diff)
downloadgcc-8885e914f3788544768540affbc0d30cb49ba963.zip
gcc-8885e914f3788544768540affbc0d30cb49ba963.tar.gz
gcc-8885e914f3788544768540affbc0d30cb49ba963.tar.bz2
* cp-tree.h (LANG_DECL_FN_CHECK): Fix non-checking version.
From-SVN: r149239
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/cp-tree.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9cc2aab..9953b20 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
2009-07-04 Jason Merrill <jason@redhat.com>
+ * cp-tree.h (LANG_DECL_FN_CHECK): Fix non-checking version.
+
PR c++/40619
* cp-tree.h (struct lang_decl_parm): New.
(struct lang_decl): Add it.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 4cf5b14..24351b4 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1741,7 +1741,7 @@ struct GTY(()) lang_decl {
(&DECL_LANG_SPECIFIC (NODE)->u.min)
#define LANG_DECL_FN_CHECK(NODE) \
- (&DECL_LANG_SPECIFIC (NODE)->u.fn)
+ (&DECL_LANG_SPECIFIC (STRIP_TEMPLATE (NODE))->u.fn)
#define LANG_DECL_NS_CHECK(NODE) \
(&DECL_LANG_SPECIFIC (NODE)->u.ns)