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
c8649fde
Commit
c8649fde
authored
Jul 20, 1999
by
Alexandre Oliva
Committed by
Alexandre Oliva
Jul 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* template8.C, typeof1.C: New test.
From-SVN: r28189
parent
7f4edbcb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.oliva/template8.C
+18
-0
gcc/testsuite/g++.old-deja/g++.oliva/typeof1.C
+20
-0
No files found.
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
View file @
c8649fde
1999-07-20 Alexandre Oliva <oliva@dcc.unicamp.br>
* template8.C, typeof1.C: New test.
1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
* template6.C, delete1.C, template7.C: New test.
...
...
gcc/testsuite/g++.old-deja/g++.oliva/template8.C
0 → 100644
View file @
c8649fde
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// simplified from bug report by redleaf <e1wwater@dingo.cc.uq.edu.au>
struct
B
{
template
<
class
>
void
bar
();
}
b
;
template
<
class
T
>
void
foo
()
{
b
.
bar
<
T
>
();
// gets bogus error - bar undeclared - XFAIL *-*-*
b
.
template
bar
<
T
>
();
// gets bogus error - ditto - XFAIL *-*-*
b
.
B
::
bar
<
T
>
();
// ok
}
template
void
foo
<
void
>
();
// gets bogus error - XFAIL *-*-*
gcc/testsuite/g++.old-deja/g++.oliva/typeof1.C
0 → 100644
View file @
c8649fde
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
struct
B
{
int
i
;
};
template
<
class
T
>
void
foo
(
T
b
)
{
b
.
T
::
i
;
// ok
// b.__typeof__(b)::i; // parse error, should this be accepted?
typedef
T
t1
;
b
.
t1
::
i
;
// ok
typedef
__typeof__
(
b
)
t2
;
b
.
t2
::
i
;
// crash test - XFAIL *-*-*
}
template
void
foo
(
B
);
// not needed for the crash
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