aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2007-09-22 22:36:34 -0400
committerJason Merrill <jason@gcc.gnu.org>2007-09-22 22:36:34 -0400
commita7f6bc8c748862257b9b6e22034fd4ae0ffd4c38 (patch)
tree17a3573bc82b532229f930f45caf02beb84bdead /gcc/tree.h
parent1e74fb44cdb05432d3eb116dc80e1b0d4f86889d (diff)
downloadgcc-a7f6bc8c748862257b9b6e22034fd4ae0ffd4c38.zip
gcc-a7f6bc8c748862257b9b6e22034fd4ae0ffd4c38.tar.gz
gcc-a7f6bc8c748862257b9b6e22034fd4ae0ffd4c38.tar.bz2
re PR c++/19407 (vector keyword in typedef inside template struct ignored)
PR c++/19407 * cp/cp-tree.h (ATTR_IS_DEPENDENT): New macro. (MAYBE_TAGGED_TYPE_P): Remove. * cp/pt.c (apply_late_template_attributes): Check ATTR_IS_DEPENDENT instead of calling is_late_template_attribute again. (tsubst_decl) [TYPE_DECL]: Just check if the name is the tag. (tsubst): A typedef is a TYPE_NAME != TYPE_MAIN_DECL. Don't crash on typedefs from non-template classes. * cp/decl2.c (grokfield): Don't sorry about attrs on template parms. (is_late_template_attribute): All attributes applied to template parms or typename types are dependent. Static, take decl. (splice_template_attributes): Pass decl through. (save_template_attributes): Likewise. * attribs.c (lookup_attribute_spec): Split out... (decl_attributes): From here. * tree.h: Declare it. From-SVN: r128681
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index d7ca0b2..e893dea 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -5002,6 +5002,8 @@ extern bool must_pass_in_stack_var_size_or_pad (enum machine_mode, const_tree);
/* In attribs.c. */
+extern const struct attribute_spec *lookup_attribute_spec (tree);
+
/* Process the attributes listed in ATTRIBUTES and install them in *NODE,
which is either a DECL (including a TYPE_DECL) or a TYPE. If a DECL,
it should be modified in place; if a TYPE, a copy should be created