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
e8b028d6
Commit
e8b028d6
authored
Mar 01, 2002
by
Michael Matz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduced testcase of a 252.eon (SPEC2000) problem.
From-SVN: r50204
parent
9d8b9004
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
gcc/testsuite/g++.dg/template/wrap1.C
+27
-0
No files found.
gcc/testsuite/g++.dg/template/wrap1.C
0 → 100644
View file @
e8b028d6
// { dg-do compile }
// Copyright (C) 2002 Free Software Foundation, Inc.
// Contributed by Michael Matz 03 Mar 2002 <matz@suse.de>
// instance of an actual pattern in 252.eon from SPEC2000
// The last Wrapper<char> once wasn't completed when applying '='.
template
<
class
T
>
class
Wrapper
{
public
:
Wrapper
(
T
&
a
);
Wrapper
(
const
Wrapper
<
char
>&
ref
);
};
template
<
class
T
>
class
Element
{
public
:
T
*
operator
[](
int
x
);
};
void
test
()
{
char
bla
=
42
;
Element
<
Wrapper
<
unsigned
char
>
>
elem
;
elem
[
1
][
1
]
=
Wrapper
<
char
>
(
bla
);
}
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