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
dd2b44ff
Commit
dd2b44ff
authored
May 27, 1998
by
Jason Merrill
Committed by
Jason Merrill
May 27, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* friend.c (do_friend): Clarify template warning.
From-SVN: r20108
parent
26963cc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/cp/ChangeLog
+4
-0
gcc/cp/friend.c
+3
-2
No files found.
gcc/cp/ChangeLog
View file @
dd2b44ff
1998-05-27 Jason Merrill <jason@yorick.cygnus.com>
* friend.c (do_friend): Clarify template warning.
1998-05-27 Mark Mitchell <mark@markmitchell.com>
1998-05-27 Mark Mitchell <mark@markmitchell.com>
* decl.c (shadow_label): Don't treat decls as identifiers.
* decl.c (shadow_label): Don't treat decls as identifiers.
...
...
gcc/cp/friend.c
View file @
dd2b44ff
...
@@ -430,8 +430,9 @@ do_friend (ctype, declarator, decl, parmdecls, flags, quals, funcdef_flag)
...
@@ -430,8 +430,9 @@ do_friend (ctype, declarator, decl, parmdecls, flags, quals, funcdef_flag)
warning
(
" declares a non-template function"
);
warning
(
" declares a non-template function"
);
if
(
!
explained
)
if
(
!
explained
)
{
{
warning
(
" unless you compile with -fguiding-decls"
);
warning
(
" (if this is not what you intended, make sure"
);
warning
(
" or add <> after the function name"
);
warning
(
" the function template has already been declared,"
);
warning
(
" and add <> after the function name here)"
);
explained
=
1
;
explained
=
1
;
}
}
}
}
...
...
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