diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1997-11-13 04:36:16 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-11-13 04:36:16 -0500 |
commit | 4699894f5bbe6958e82233d3f5581f0aca4aa67d (patch) | |
tree | 91c4e82a1012fdc45b20d5b936e938961dabd669 | |
parent | 5a6b336594790cb0c4edc5207fa344acb053923c (diff) | |
download | gcc-4699894f5bbe6958e82233d3f5581f0aca4aa67d.zip gcc-4699894f5bbe6958e82233d3f5581f0aca4aa67d.tar.gz gcc-4699894f5bbe6958e82233d3f5581f0aca4aa67d.tar.bz2 |
lose implicit int
From-SVN: r16449
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/crash49.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900519_08.C | 15 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/crash2.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/opover.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/static1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/visibility13.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/misc13.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/misc14.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/net10.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/net9.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p1567.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p1862.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p1989.C | 14 |
13 files changed, 19 insertions, 34 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C index 5a8e11f..98a580d 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C @@ -2,8 +2,8 @@ // GROUPS passed old-abort #include<iostream.h> -const /* int */ keys = 10; -const /* int */ key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]}; +const int keys = 10; +const int key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]}; void main() { // ERROR - return type for main diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900519_08.C b/gcc/testsuite/g++.old-deja/g++.bugs/900519_08.C deleted file mode 100644 index ed99ae6..0000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900519_08.C +++ /dev/null @@ -1,15 +0,0 @@ -// g++ 1.37.1 bug 900519_08 - -// g++ fails to accept the following legal syntax for an invocation of the -// new operator, in which the type specifier is implicitly "int". - -// cfront 2.0 passes this test. - -// keywords: syntax, operator new, type specifier, type qualifier - -void test () -{ - new const /* int */ (1); // gets bogus error -} - -int main () { return 0; } diff --git a/gcc/testsuite/g++.old-deja/g++.jason/crash2.C b/gcc/testsuite/g++.old-deja/g++.jason/crash2.C index 9e96af1..c16abb8 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/crash2.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/crash2.C @@ -3,7 +3,7 @@ // Build don't link: class PhysicalPageId { - const maximum_block_numbers = 2; + const int maximum_block_numbers = 2; long block_number[maximum_block_numbers]; }; diff --git a/gcc/testsuite/g++.old-deja/g++.jason/opover.C b/gcc/testsuite/g++.old-deja/g++.jason/opover.C index 1fa90b6..f4a3213 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/opover.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/opover.C @@ -7,7 +7,7 @@ struct A { }; struct B { - friend operator== (B, int); + friend int operator== (B, int); }; int foo (A& a) { diff --git a/gcc/testsuite/g++.old-deja/g++.jason/static1.C b/gcc/testsuite/g++.old-deja/g++.jason/static1.C index fd0a937..994da85 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/static1.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/static1.C @@ -1,6 +1,6 @@ // PRMS id: 6863 -extern "C" printf(const char *, ...); +extern "C" int printf(const char *, ...); extern "C" void abort(); enum ENUM {E1=0, E2 }; diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility13.C b/gcc/testsuite/g++.old-deja/g++.law/visibility13.C index f1f4684..6e53fc7 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/visibility13.C +++ b/gcc/testsuite/g++.old-deja/g++.law/visibility13.C @@ -37,7 +37,7 @@ ostream& operator<<( ostream& os, Array<Type>& ar ) template <class Type> void Array<Type>::print(ostream& os) { - const lineLength = 12; + const int lineLength = 12; os << "( " << size << " )< "; for (int ix = 0; ix < size; ++ix) { diff --git a/gcc/testsuite/g++.old-deja/g++.mike/misc13.C b/gcc/testsuite/g++.old-deja/g++.mike/misc13.C index 299af82..80874b1 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/misc13.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/misc13.C @@ -1,5 +1,5 @@ // GROUPS passed vtable -extern "C" printf(...); +extern "C" int printf(...); enum { vf_request, vf_event } want; int errs = 0; diff --git a/gcc/testsuite/g++.old-deja/g++.mike/misc14.C b/gcc/testsuite/g++.old-deja/g++.mike/misc14.C index 9ceeff1..75827cb 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/misc14.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/misc14.C @@ -1,5 +1,5 @@ // GROUPS passed -extern "C" printf(...); +extern "C" int printf(...); extern "C" void exit(int); class A { diff --git a/gcc/testsuite/g++.old-deja/g++.mike/net10.C b/gcc/testsuite/g++.old-deja/g++.mike/net10.C index 6ebcb01..a290b46 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/net10.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/net10.C @@ -1,7 +1,7 @@ // Build don't link: // Special g++ Options: -pedantic-errors -const ci=10, *pc = &ci, *const cpc = pc, **ppc; +const int ci=10, *pc = &ci, *const cpc = pc, **ppc; int i, *p, *const cp = &i; main() diff --git a/gcc/testsuite/g++.old-deja/g++.mike/net9.C b/gcc/testsuite/g++.old-deja/g++.mike/net9.C index 927184a..c36151c 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/net9.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/net9.C @@ -1,7 +1,7 @@ // Build don't link: // Special g++ Options: -pedantic-errors -const ci=10, *pc = &ci, *const cpc = pc, **ppc; +const int ci=10, *pc = &ci, *const cpc = pc, **ppc; int i, *p, *const cp = &i; main() diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p1567.C b/gcc/testsuite/g++.old-deja/g++.mike/p1567.C index 0cc9a03..c805818 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p1567.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p1567.C @@ -1,5 +1,5 @@ // GROUPS passed vtable -extern "C" printf (const char *, ...); +extern "C" int printf (const char *, ...); extern "C" void exit(int); class A { diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p1862.C b/gcc/testsuite/g++.old-deja/g++.mike/p1862.C index 1f88a83..ff7266f 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p1862.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p1862.C @@ -1,5 +1,5 @@ // GROUPS vtable -extern "C" printf (const char *, ...); +extern "C" int printf (const char *, ...); class A { diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p1989.C b/gcc/testsuite/g++.old-deja/g++.mike/p1989.C index a145b1e..c64aa75 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p1989.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p1989.C @@ -472,14 +472,14 @@ Graph<T>::V1(Pix vx, Pix x) const class STRLIdentifier; -extern x(List_DL<STRLIdentifier *>); -extern x(List_DLS<STRLIdentifier *>); +extern int x(List_DL<STRLIdentifier *>); +extern int x(List_DLS<STRLIdentifier *>); -extern x(Set<STRLIdentifier *>); -extern x(Set_DL<STRLIdentifier *>); -extern x(Set_DLp<STRLIdentifier *>); +extern int x(Set<STRLIdentifier *>); +extern int x(Set_DL<STRLIdentifier *>); +extern int x(Set_DLp<STRLIdentifier *>); -extern x(Graph<STRLIdentifier *>); +extern int x(Graph<STRLIdentifier *>); class STRLIdentifier { char buf[10]; @@ -488,7 +488,7 @@ class STRLIdentifier { extern int operator==(vertex<STRLIdentifier*>&, vertex<STRLIdentifier*>&); // ERROR - const subversion extern int operator==(STRLIdentifier&, STRLIdentifier&); // ERROR - fn ref in err msg -extern x(List_DLSp<STRLIdentifier *>); +extern int x(List_DLSp<STRLIdentifier *>); template class Graph<STRLIdentifier *>; template class List_DLS<vertex<STRLIdentifier *> >; |