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
3333a2dd
Commit
3333a2dd
authored
Jun 02, 2010
by
Jason Merrill
Committed by
Jason Merrill
Jun 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* error.c (dump_type): Improve typedef handling.
From-SVN: r160184
parent
1e003829
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletions
+24
-1
gcc/cp/ChangeLog
+2
-0
gcc/cp/error.c
+19
-0
gcc/testsuite/ChangeLog
+2
-0
gcc/testsuite/g++.dg/ext/vector9.C
+1
-1
No files found.
gcc/cp/ChangeLog
View file @
3333a2dd
2010-06-02 Jason Merrill <jason@redhat.com>
* error.c (dump_type): Improve typedef handling.
PR c++/9726
PR c++/23594
PR c++/44333
...
...
gcc/cp/error.c
View file @
3333a2dd
...
...
@@ -329,6 +329,25 @@ dump_type (tree t, int flags)
if
(
t
==
NULL_TREE
)
return
;
/* Don't print e.g. "struct mytypedef". */
if
(
TYPE_P
(
t
)
&&
typedef_variant_p
(
t
))
{
tree
decl
=
TYPE_NAME
(
t
);
if
((
flags
&
TFF_CHASE_TYPEDEF
)
||
DECL_SELF_REFERENCE_P
(
decl
)
||
(
!
flag_pretty_templates
&&
DECL_LANG_SPECIFIC
(
decl
)
&&
DECL_TEMPLATE_INFO
(
decl
)))
t
=
strip_typedefs
(
t
);
else
if
(
same_type_p
(
t
,
TREE_TYPE
(
decl
)))
t
=
decl
;
else
{
pp_cxx_cv_qualifier_seq
(
cxx_pp
,
t
);
pp_cxx_tree_identifier
(
cxx_pp
,
TYPE_IDENTIFIER
(
t
));
return
;
}
}
if
(
TYPE_PTRMEMFUNC_P
(
t
))
goto
offset_type
;
...
...
gcc/testsuite/ChangeLog
View file @
3333a2dd
2010-06-02 Jason Merrill <jason@redhat.com>
* g++.dg/ext/vector9.C: Expect typedef in error message.
PR c++/9726
PR c++/23594
PR c++/44333
...
...
gcc/testsuite/g++.dg/ext/vector9.C
View file @
3333a2dd
...
...
@@ -6,5 +6,5 @@ typedef int v4i __attribute__((vector_size(8)));
void
foo
()
{
v4f
v
;
!
(
v4i
)
v
;
// { dg-error "
__vector.2. int
|argument" }
!
(
v4i
)
v
;
// { dg-error "
v4i
|argument" }
}
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