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
11f98788
Commit
11f98788
authored
May 19, 1999
by
Mark Mitchell
Committed by
Mark Mitchell
May 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (build_template_decl): Copy DECL_NONCONVERTING_P.
From-SVN: r27034
parent
550c2492
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
gcc/cp/ChangeLog
+2
-0
gcc/cp/pt.c
+1
-0
gcc/testsuite/g++.old-deja/g++.pt/conv3.C
+10
-0
No files found.
gcc/cp/ChangeLog
View file @
11f98788
1999-05-19 Mark Mitchell <mark@codesourcery.com>
* pt.c (build_template_decl): Copy DECL_NONCONVERTING_P.
* decl2.c (start_static_storage_duration_function): Fix comment.
(finish_file): Create static storage duration functions lazily.
...
...
gcc/cp/pt.c
View file @
11f98788
...
...
@@ -1950,6 +1950,7 @@ build_template_decl (decl, parms)
DECL_CLASS_CONTEXT
(
tmpl
)
=
DECL_CLASS_CONTEXT
(
decl
);
DECL_STATIC_FUNCTION_P
(
tmpl
)
=
DECL_STATIC_FUNCTION_P
(
decl
);
DECL_CONSTRUCTOR_P
(
tmpl
)
=
DECL_CONSTRUCTOR_P
(
decl
);
DECL_NONCONVERTING_P
(
tmpl
)
=
DECL_NONCONVERTING_P
(
decl
);
}
return
tmpl
;
...
...
gcc/testsuite/g++.old-deja/g++.pt/conv3.C
0 → 100644
View file @
11f98788
// Build don't link:
// Origin: Chris Heath <cheath@math.lsa.umich.edu>
struct
A
{
template
<
typename
T
>
explicit
A
(
T
t
)
{}
};
void
f
(
A
a
)
{}
int
main
()
{
f
(
1
);}
// ERROR - no conversion from int to A.
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