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
19333f70
Commit
19333f70
authored
Jun 05, 1998
by
Jason Merrill
Committed by
Jason Merrill
Jun 04, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
From-SVN: r20237
parent
3e3f722c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
13 deletions
+62
-13
gcc/cp/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.ns/alias3.C
+30
-0
gcc/testsuite/g++.old-deja/g++.ns/alias4.C
+13
-0
gcc/testsuite/g++.old-deja/g++.ns/koenig2.C
+7
-6
gcc/testsuite/g++.old-deja/g++.ns/using3.C
+2
-0
gcc/testsuite/g++.old-deja/g++.other/new2.C
+6
-7
No files found.
gcc/cp/ChangeLog
View file @
19333f70
1998-06-05 Jason Merrill <jason@yorick.cygnus.com>
* error.c (cp_printers): Use 'o' instead of '_' for the null entry.
1998-06-05 Martin v. Loewis <loewis@informatik.hu-berlin.de>
* cp-tree.h (DECL_NAMESPACE_ALIAS, ORIGINAL_NAMESPACE): Declare.
...
...
gcc/testsuite/g++.old-deja/g++.ns/alias3.C
0 → 100644
View file @
19333f70
namespace
A
{
struct
X
{};
void
f
(
X
&
);
extern
int
i
;
namespace
a_very_long_namespace_name
{
int
k
;
}
}
namespace
B
=
A
;
namespace
B
=
A
;
namespace
B
=
B
;
namespace
avl
=
A
::
a_very_long_namespace_name
;
void
B
::
f
(
A
::
X
&
x
)
{
B
::
f
(
x
);
f
(
x
);
avl
::
k
=
1
;
}
int
B
::
i
=
0
;
int
main
()
{
B
::
X
x
;
if
(
B
::
i
)
A
::
f
(
x
);
}
gcc/testsuite/g++.old-deja/g++.ns/alias4.C
0 → 100644
View file @
19333f70
namespace
A
=
B
;
// ERROR - unknown namespace
namespace
C
{}
namespace
D
=
C
;
namespace
D
{
// ERROR - reopening namespace with alias
void
f
();
}
void
C
::
f
(){}
// ERROR - previous definition
void
D
::
f
(){}
// ERROR - redefinition
namespace
E
=
C
::
F
;
// ERROR - unknown namespace
gcc/testsuite/g++.old-deja/g++.ns/koenig2.C
View file @
19333f70
//Build don't link:
//Check association of {error} for Koenig lookup
class
QString
{
};
// Build don't link:
// Check association of {error} for Koenig lookup
// Special g++ Options:
struct
QString
{
operator
void
*
();
};
int
foo
()
{
QString
bar
;
if
(
bar
==
__null
)
{
}
QString
bar
;
return
(
bar
==
__null
);
}
gcc/testsuite/g++.old-deja/g++.ns/using3.C
View file @
19333f70
// Build don't link:
typedef
unsigned
int
atypedef
;
struct
astruct
{};
void
afunction
();
...
...
gcc/testsuite/g++.old-deja/g++.other/new2.C
View file @
19333f70
...
...
@@ -8,15 +8,14 @@ struct X{
};
void
f
(
X
*
x
=
new
X
);
// ERROR -
void
f
(
X
*
x
=
new
X
);
// ERROR -
void
f
(
X
*
x
=
new
X
(
4
));
// ERROR -
void
f
(
X
*
x
=
new
X
(
4
));
// ERROR -
void
f
(
X
*
x
=
new
X
[
4
]);
// ERROR -
void
f
(
X
*
x
=
new
X
[
4
]);
// ERROR -
void
f
(
X
*
x
=
new
(
3
)
X
(
6
));
// ERROR -
void
f
(
X
*
x
=
new
(
3
)
X
(
6
));
// ERROR -
void
f
(
X
*
x
=
new
(
2
)
X
[
10
]);
// ERROR -
void
f
(
X
*
x
=
new
X
[
10
][
5
]);
// ERROR -
void
f
(
X
*
x
=
new
(
2
)
X
[
10
]);
// ERROR -
void
f
(
X
*
x
=
new
X
[
10
][
5
]);
// ERROR -
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