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
8e54705d
Commit
8e54705d
authored
Jun 01, 1998
by
Robert Lipe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another round of improvements from Martin.
From-SVN: r20166
parent
d73365c5
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
18 additions
and
19 deletions
+18
-19
gcc/testsuite/g++.old-deja/g++.robertl/eb11.C
+0
-3
gcc/testsuite/g++.old-deja/g++.robertl/eb18.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb63.C
+2
-0
gcc/testsuite/g++.old-deja/g++.robertl/eb67.C
+2
-2
gcc/testsuite/g++.old-deja/g++.robertl/eb71.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb8.C
+3
-3
gcc/testsuite/g++.old-deja/g++.robertl/eb82.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb87.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb92.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb93.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb94.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb98.C
+1
-1
gcc/testsuite/g++.old-deja/g++.robertl/eb99.C
+2
-2
No files found.
gcc/testsuite/g++.old-deja/g++.robertl/eb11.C
View file @
8e54705d
// Build don't link:
#define NO_META_MAX
#ifndef NO_META_MAX
template
<
int
N1
,
int
N2
>
struct
meta_max
{
enum
{
max
=
(
N1
>
N2
)
?
N1
:
N2
};
};
#endif
struct
X
{
enum
{
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb18.C
View file @
8e54705d
...
...
@@ -4,5 +4,5 @@ class C { };
void
foo
()
{
C
c
;
void
*
v
=
static_cast
<
void
*>
(
c
);
void
*
v
=
static_cast
<
void
*>
(
c
);
// ERROR - illegal cast
}
gcc/testsuite/g++.old-deja/g++.robertl/eb63.C
View file @
8e54705d
//Special g++ Options:
//This uses GNU extensions, so disable -ansi
#include <stdio.h>
class
A
{
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb67.C
View file @
8e54705d
// Build don't link:
/*
/*
Check whether a typedef for a basic type as a baseclass is diagnosed.
*/
typedef
int
an_int
;
class
bar
:
public
an_int
{};
// ERROR -
class
bar
:
public
an_int
{};
// ERROR -
not an aggregate
gcc/testsuite/g++.old-deja/g++.robertl/eb71.C
View file @
8e54705d
...
...
@@ -18,7 +18,7 @@ friend class D;
class
D
{
int
ins
(
B
*&
);
};
};
//WARNING - only private members
int
D
::
ins
(
B
*&
tempN
)
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
View file @
8e54705d
...
...
@@ -7,7 +7,7 @@ inline bool operator!=(const T& x, const T& y) {
enum
T
{
V1
,
};
//
ERROR -
};
//
ERROR - comma at end of enumerator list
struct
X
{
T
t
:
31
;
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb8.C
View file @
8e54705d
class
foo
{
public
:
operator
<<
(
const
void
*
);
operator
<<
(
char
*
);
operator
<<
(
const
void
*
);
//ERROR - no return type
operator
<<
(
char
*
);
//ERROR - no return type
};
void
main
()
{
{
//ERROR - wrong return type for main
foo
f
;
f
<<
(
void
*
)
0
;
}
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb82.C
View file @
8e54705d
...
...
@@ -2,7 +2,7 @@
template
<
int
n1
>
double
val
<
int
>
()
{
{
// ERROR - bogus code
return
(
double
)
n1
;
};
...
...
gcc/testsuite/g++.old-deja/g++.robertl/eb87.C
View file @
8e54705d
...
...
@@ -2,5 +2,5 @@ template <unsigned X, class T> struct Foo {
friend
void
operator
<<
(
int
,
Foo
const
&
)
{}
};
template
<
unsigned
X
>
class
Bar
:
public
Foo
<
X
,
int
>
{};
inline
Bar
<
0
>
bar
(
int
,
int
,
int
)
{
return
Bar
<
3
>
();
}
inline
Bar
<
0
>
bar
(
int
,
int
,
int
)
{
return
Bar
<
3
>
();
}
// ERROR - no conversion
gcc/testsuite/g++.old-deja/g++.robertl/eb92.C
View file @
8e54705d
template
<
int
N
>
f
<
0
>
(){}
template
<
int
N
>
f
<
0
>
(){}
// ERROR - invalid code
gcc/testsuite/g++.old-deja/g++.robertl/eb93.C
View file @
8e54705d
...
...
@@ -26,5 +26,5 @@ inline double Sine()
int
main
()
{
double
f
=
Sine
<
32
,
5
>
()
return
0
;
return
0
;
// ERROR - parse error
}
gcc/testsuite/g++.old-deja/g++.robertl/eb94.C
View file @
8e54705d
...
...
@@ -12,4 +12,4 @@ private:
static
int
variable
;
// this is intentionally duplicated
};
myClass
::
variable
=
0
;
myClass
::
variable
=
0
;
//ERROR - no type
gcc/testsuite/g++.old-deja/g++.robertl/eb98.C
View file @
8e54705d
...
...
@@ -13,5 +13,5 @@
void
f
()
{
extent
(
b
);
extent
(
b
);
// ERROR - no matching function
}
gcc/testsuite/g++.old-deja/g++.robertl/eb99.C
View file @
8e54705d
...
...
@@ -128,7 +128,7 @@ class Baz : public ref_counted {
class
Bar
;
void
main
()
{
int
main
()
{
ref_ptr
<
Baz
>
foo
;
static_cast
<
Bar
*>
(
foo
)
->
DoSomething
;
static_cast
<
Bar
*>
(
foo
)
->
DoSomething
;
//ERROR - invalid cast
}
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