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
fab701da
Commit
fab701da
authored
Sep 20, 2000
by
Mark Mitchell
Committed by
Mark Mitchell
Sep 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
From-SVN: r36553
parent
155b14a8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
1 deletions
+56
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/tree.c
+2
-0
gcc/testsuite/g++.old-deja/g++.other/crash23.C
+1
-1
gcc/testsuite/g++.old-deja/g++.other/inline14.C
+49
-0
No files found.
gcc/cp/ChangeLog
View file @
fab701da
2000-09-20 Mark Mitchell <mark@codesourcery.com>
* tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
2000-09-20 Hans-Peter Nilsson <hp@axis.com>
* except.c: Delete #if 0:d EXCEPTION_SECTION_ASM_OP-default and
...
...
gcc/cp/tree.c
View file @
fab701da
...
...
@@ -2465,6 +2465,8 @@ mark_local_for_remap_r (tp, walk_subtrees, data)
else
if
(
TREE_CODE
(
t
)
==
TARGET_EXPR
&&
nonstatic_local_decl_p
(
TREE_OPERAND
(
t
,
0
)))
decl
=
TREE_OPERAND
(
t
,
0
);
else
if
(
TREE_CODE
(
t
)
==
CASE_LABEL
)
decl
=
CASE_LABEL_DECL
(
t
);
else
decl
=
NULL_TREE
;
...
...
gcc/testsuite/g++.old-deja/g++.other/crash23.C
View file @
fab701da
...
...
@@ -3,5 +3,5 @@
class
T
;
inline
void
operator
<
(
T
&
,
T
&
)
{
}
inline
void
operator
<
(
T
&
,
T
&
)
{
}
inline
void
operator
<
(
T
&
,
T
&
)
{
}
// ERROR - duplicate definition
gcc/testsuite/g++.old-deja/g++.other/inline14.C
0 → 100644
View file @
fab701da
// Build don't link:
// Origin: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
#include <iostream>
struct
IDENT
{
enum
TYPE
{
Variable
,
Constant
}
type
;
ostream
&
printTo
(
ostream
&
out
)
const
{
switch
(
type
)
{
case
Variable
:
out
<<
'_'
;
break
;
default
:
break
;
}
return
out
;
}
};
template
<
class
T
>
struct
TC
{
IDENT
i
;
const
IDENT
&
getIdent
()
const
{
return
i
;
}
};
template
<
class
T
>
inline
ostream
&
operator
<<
(
ostream
&
out
,
const
TC
<
T
>
&
c
)
{
c
.
getIdent
().
printTo
(
out
);
return
out
;
}
void
foo
(
const
TC
<
IDENT
>
&
c
)
{
cerr
<<
c
<<
": "
// This line is crucial!
<<
c
<<
endl
;
}
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