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
78c120b5
Commit
78c120b5
authored
24 years ago
by
Mark Mitchell
Committed by
Mark Mitchell
24 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (start_function): Robustify.
From-SVN: r36527
parent
8bc603ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+8
-3
gcc/testsuite/g++.old-deja/g++.other/crash23.C
+7
-0
No files found.
gcc/cp/ChangeLog
View file @
78c120b5
2000-09-18 Mark Mitchell <mark@codesourcery.com>
* decl.c (start_function): Robustify.
2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cp-tree.h (check_function_format): Accept a `status' parameter.
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/decl.c
View file @
78c120b5
...
...
@@ -13711,9 +13711,14 @@ start_function (declspecs, declarator, attrs, flags)
current_function_decl
=
decl1
;
cfun
->
decl
=
decl1
;
my_friendly_assert
((
DECL_PENDING_INLINE_P
(
decl1
)
||
!
DECL_SAVED_FUNCTION_DATA
(
decl1
)),
20000911
);
/* If we are (erroneously) defining a function that we have already
defined before, wipe out what we knew before. */
if
(
!
DECL_PENDING_INLINE_P
(
decl1
)
&&
DECL_SAVED_FUNCTION_DATA
(
decl1
))
{
free
(
DECL_SAVED_FUNCTION_DATA
(
decl1
));
DECL_SAVED_FUNCTION_DATA
(
decl1
)
=
NULL
;
}
if
(
ctype
&&
!
doing_friend
&&
!
DECL_STATIC_FUNCTION_P
(
decl1
))
{
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.other/crash23.C
0 → 100644
View file @
78c120b5
// Build don't link:
// Origin: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
class
T
;
inline
void
operator
<
(
T
&
,
T
&
)
{
}
inline
void
operator
<
(
T
&
,
T
&
)
{
}
This diff is collapsed.
Click to expand it.
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