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
11a36a27
Commit
11a36a27
authored
Jan 06, 2012
by
Jason Merrill
Committed by
Jason Merrill
Jan 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* error.c (dump_expr): Print type of CONSTRUCTOR.
From-SVN: r182967
parent
45896127
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/error.c
+2
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp0x/error7.C
+10
-0
No files found.
gcc/cp/ChangeLog
View file @
11a36a27
2012-01-06 Jason Merrill <jason@redhat.com>
* error.c (dump_expr): Print type of CONSTRUCTOR.
2012-01-05 Dodji Seketeli <dodji@redhat.com>
PR c++/51541
...
...
gcc/cp/error.c
View file @
11a36a27
...
...
@@ -2194,6 +2194,8 @@ dump_expr (tree t, int flags)
}
else
{
if
(
!
BRACE_ENCLOSED_INITIALIZER_P
(
t
))
dump_type
(
TREE_TYPE
(
t
),
0
);
pp_cxx_left_brace
(
cxx_pp
);
dump_expr_init_vec
(
CONSTRUCTOR_ELTS
(
t
),
flags
);
pp_cxx_right_brace
(
cxx_pp
);
...
...
gcc/testsuite/ChangeLog
View file @
11a36a27
2012-01-06 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/error7.C: New.
2012-01-06 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/deallocate_stat_2.f90: New.
...
...
gcc/testsuite/g++.dg/cpp0x/error7.C
0 → 100644
View file @
11a36a27
// Test for printing the type of T{} in error messages.
// { dg-options -std=c++0x }
template
<
class
T
,
T
t
>
struct
A
{
};
template
<
class
T
>
A
<
T
,
T
{}
>
f
(
T
t
);
// { dg-message "T{}" }
int
main
()
{
f
();
// { dg-error "no match" }
}
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