Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
195a5def
Commit
195a5def
authored
Jan 10, 2002
by
Ira Ruben
Committed by
Jason Merrill
Jan 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (start_method): Handle attrlist.
From-SVN: r48730
parent
adc7fcb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
gcc/cp/ChangeLog
+8
-2
gcc/cp/decl.c
+3
-0
gcc/testsuite/g++.dg/ext/member-attr.C
+14
-0
No files found.
gcc/cp/ChangeLog
View file @
195a5def
2002-01-10 Ira Ruben <ira@apple.com>
* decl.c (start_method): Handle attrlist.
2002-01-10 Jakub Jelinek <jakub@redhat.com>
* decl2.c (max_tinst_depth): Increase default limit to 500.
...
...
@@ -288,6 +292,7 @@
2002-01-04 Jason Merrill <jason@redhat.com>
PR c++/4122
* class.c (update_vtable_entry_for_fn): Set delta to zero for a
lost primary.
...
...
@@ -427,6 +432,7 @@
2001-12-18 Jason Merrill <jason@redhat.com>
PR c++/3242
* class.c (add_method): Do compare 'this' quals when trying to match a
used function. Don't defer to another used function.
...
...
@@ -770,7 +776,7 @@ Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2001-11-25 Aldy Hernandez <aldyh@redhat.com>
*
cp/
search.c (lookup_base_r): Declare bk in variable declaration
* search.c (lookup_base_r): Declare bk in variable declaration
space.
2001-11-25 Nathan Sidwell <nathan@codesourcery.com>
...
...
@@ -937,7 +943,7 @@ Tue Nov 27 09:03:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2001-11-12 H.J. Lu <hjl@gnu.org>
* c
p/c
vt.c (ocp_convert): Don't warn the address of a weak
* cvt.c (ocp_convert): Don't warn the address of a weak
function is always `true'.
2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
...
...
gcc/cp/decl.c
View file @
195a5def
...
...
@@ -14173,6 +14173,9 @@ start_method (declspecs, declarator, attrlist)
if
(
fndecl
==
NULL_TREE
)
return
NULL_TREE
;
if
(
attrlist
)
cplus_decl_attributes
(
&
fndecl
,
attrlist
,
0
);
/* Pass friends other than inline friend functions back. */
if
(
fndecl
==
void_type_node
)
return
fndecl
;
...
...
gcc/testsuite/g++.dg/ext/member-attr.C
0 → 100644
View file @
195a5def
/* Test to see if__attribute__'s are handled by inline member functions */
/* { dg-do compile } */
/* { dg-options "-fmessage-length=0" } */
/* Previously __attribute__'s were handled by the grammar but "dropped
on the floor", these effectively ignoring them. This tests the fix
to see that they are now handled. In this test it should report
that we have an illegal attribute. */
class
T
{
public
:
__attribute__
((
garbage1
))
void
member1
(
int
)
{}
/* { dg-error "`garbage1' attribute directive ignored" "" } */
void
__attribute__
((
garbage2
))
member2
(
int
)
{}
/* { dg-error "`garbage2' attribute directive ignored" "" } */
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment