aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
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/c-common.c
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/c-common.c')
0 files changed, 0 insertions, 0 deletions