diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2010-04-06 17:13:07 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-04-06 17:13:07 -0400 |
commit | d4a2b4862344454ab42a57a6a4b50461d1fa6f81 (patch) | |
tree | bce7108409edea2346357626feb21cb76d8a5755 /gcc/testsuite/g++.old-deja/g++.robertl | |
parent | 9310a3e26905c65e86acfb6634252dab2d346fd0 (diff) | |
download | gcc-d4a2b4862344454ab42a57a6a4b50461d1fa6f81.tar.gz |
parser.c (cp_parser_class_specifier): Set class location to that of IDENTIFIER_NODE instead of '{' when possible.
* parser.c (cp_parser_class_specifier): Set class location to that
of IDENTIFIER_NODE instead of '{' when possible.
* semantics.c (begin_class_definition): Do not overide locations
with less precise ones.
From-SVN: r158030
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.robertl')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.robertl/eb109.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.robertl/eb4.C | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C index 5a70e194439..dae13b67bd5 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C @@ -19,8 +19,8 @@ inline istream& operator>>(istream& is, Empty& ) { return is;} template<class VertexType, class EdgeType> -class Graph -{ // { dg-message "note" } candidates +class Graph // { dg-message "note" } candidates +{ public: // public type interface typedef std::map<int, EdgeType > Successor; diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C index 5f82e1fc926..dfd3d6ceda4 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C @@ -16,8 +16,8 @@ public: int i; }; -class some_derived : public some_base - { // { dg-message "note" } +class some_derived : public some_base // { dg-message "note" } + { public: class derived_func_args; void func(derived_func_args &); |