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
61cd1234
Commit
61cd1234
authored
26 years ago
by
Mark Mitchell
Committed by
Mark Mitchell
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl2.c (grokfield): Remangle the name of a member TYPE_DECL.
From-SVN: r19369
parent
1701f21e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl2.c
+6
-0
gcc/testsuite/g++.old-deja/g++.pt/typedef3.C
+25
-0
No files found.
gcc/cp/ChangeLog
View file @
61cd1234
...
...
@@ -5,6 +5,8 @@ Tue Apr 21 22:00:04 1998 Mark Mitchell <mmitchell@usa.net>
* decl2.c (check_member_template): Set DECL_IGNORED for member
class templates, too.
* decl2.c (grokfield): Remangle the name of a member TYPE_DECL.
Tue Apr 21 18:59:11 1998 Benjamin Kosnik <bkoz@rhino.cygnus.com>
* decl.c (duplicate_decls): Only check DECL_FRIEND_P if function.
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/decl2.c
View file @
61cd1234
...
...
@@ -1579,6 +1579,12 @@ grokfield (declarator, declspecs, init, asmspec_tree, attrlist)
DECL_CLASS_CONTEXT
(
value
)
=
current_class_type
;
CLASSTYPE_LOCAL_TYPEDECLS
(
current_class_type
)
=
1
;
/* Now that we've updated the context, we need to remangle the
name for this TYPE_DECL. */
DECL_ASSEMBLER_NAME
(
value
)
=
DECL_NAME
(
value
);
DECL_ASSEMBLER_NAME
(
value
)
=
get_identifier
(
build_overload_name
(
TREE_TYPE
(
value
),
1
,
1
));
pushdecl_class_level
(
value
);
return
value
;
}
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.pt/typedef3.C
0 → 100644
View file @
61cd1234
// Build don't link:
template
<
class
T
>
void
f
(
T
,
T
)
{
}
struct
A
{
typedef
enum
{
VAL1
}
result_t
;
};
struct
B
{
typedef
enum
{
VAL2
}
result_t
;
};
void
g
()
{
f
(
A
::
VAL1
,
A
::
VAL1
);
f
(
B
::
VAL2
,
B
::
VAL2
);
}
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