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
0ecba51f
Commit
0ecba51f
authored
Dec 22, 1999
by
Alexandre Oliva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks
From-SVN: r31063
parent
200a1a6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gcc/testsuite/g++.old-deja/g++.oliva/template10.C
+4
-4
No files found.
gcc/testsuite/g++.old-deja/g++.oliva/template10.C
View file @
0ecba51f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// bug report by Martin Sebor <sebor@roguewave.com>
// bug report by Martin Sebor <sebor@roguewave.com>
//
from C++ Standard
[temp.expl.spec]/5
//
based on C++ Standard example in
[temp.expl.spec]/5
/* Members of explicitly specialized template classes shall not be
/* Members of explicitly specialized template classes shall not be
defined with template-specialization syntax. The example in the
defined with template-specialization syntax. The example in the
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
template
<
class
T
>
struct
A
{};
template
<
class
T
>
struct
A
{};
template
<>
struct
A
<
int
>
{
template
<>
struct
A
<
int
>
{
static
const
bool
a
,
b
;
static
bool
a
,
b
;
};
};
const
bool
A
<
int
>::
a
;
// ok
bool
A
<
int
>::
a
=
true
;
// ok
template
<>
const
bool
A
<
int
>::
b
;
// ERROR - bad specialization
- XFAIL *-*-*
template
<>
bool
A
<
int
>::
b
=
false
;
// ERROR
- XFAIL *-*-*
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