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
7f7c930e
Commit
7f7c930e
authored
Oct 14, 1998
by
Jason Merrill
Committed by
Jason Merrill
Oct 13, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (grokfndecl): Fix my thinko.
From-SVN: r23077
parent
f69864aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+8
-3
No files found.
gcc/cp/ChangeLog
View file @
7f7c930e
1998-10-14 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokfndecl): Fix my thinko.
1998-10-13 Jason Merrill <jason@yorick.cygnus.com>
* tinfo2.cc (fast_compare): Remove.
...
...
gcc/cp/decl.c
View file @
7f7c930e
...
...
@@ -8024,9 +8024,14 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
t
=
no_linkage_check
(
TREE_TYPE
(
decl
));
if
(
t
)
{
if
(
ANON_AGGRNAME_P
(
TYPE_IDENTIFIER
(
t
))
&&
DECL_LANGUAGE
(
decl
)
!=
lang_c
)
cp_pedwarn
(
"non-local function `%#D' uses anonymous type"
,
decl
);
if
(
ANON_AGGRNAME_P
(
TYPE_IDENTIFIER
(
t
)))
{
if
(
DECL_LANGUAGE
(
decl
)
==
lang_c
)
/* Allow this; it's pretty common in C. */
;
else
cp_pedwarn
(
"non-local function `%#D' uses anonymous type"
,
decl
);
}
else
cp_pedwarn
(
"non-local function `%#D' uses local type `%T'"
,
decl
,
t
);
...
...
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