plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | chromium | 17930 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/17930.C | 133 | utf_8 | c0c9d6be703bb9e7d62e19e8fac5fe96 | // { dg-do assemble }
// 981204 bkoz
// g++/17930
char const one[] = "test";
char const two[] = one; // { dg-error "" } // ERROR -
|
google | chromium | warn04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/warn04.C | 204 | utf_8 | 49fb55f1f6d9a4c4d3fca4caaf91f5b0 | // { dg-do assemble }
// { dg-options "-Wno-non-template-friend" }
// 980903 bkoz
// make sure this option works
template<class T> class task {
friend void next_time(); //shouldn't give a warning
};
|
google | chromium | 15756-2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/15756-2.C | 656 | utf_8 | 1860c693f6bc8ef1270ecab41ecc9551 | // { dg-do assemble }
// { dg-options "-Wsign-promo" }
// 981203 bkoz
// g++/15756 test2
// this test may only be valid for 32bit targets at present
#include <limits.h>
enum e_i {
vali
}
enum_int;
enum e_ui {
#if INT_MAX == 32767
valui = 0xF234
#else
valui = 0xF2345678
#endif
}
enum_uint;
int i;
unsigned i... |
google | chromium | 15756-1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/15756-1.C | 475 | utf_8 | d0f47415efc4de81e9b3a94bb2f2d30b | // { dg-do assemble }
// { dg-options "-Wsign-promo" }
// 981203 bkoz
// g++/15756 test1
enum e_value { first = 0, next = 30 };
struct sanjuan {
sanjuan(int value);
sanjuan(unsigned value);
friend sanjuan operator&(const sanjuan& x, const sanjuan& y);
friend int operator!=(const sanjuan& x, const sanjuan& y... |
google | chromium | tem03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C | 4,229 | utf_8 | 4ce04653a9862e9925870650b53d9e30 | // { dg-do assemble }
// 980808-980824 bkoz
// template parameter redeclaration bugs
// 14.1 Template parameters
// p 13
// The scope of a template-parameter extens from its point of
// declartion until the end of its template. In particular, a
// template-parameter can be used in the declaration of subsequent
// tem... |
google | chromium | p13417 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/p13417.C | 202 | utf_8 | 6a215b61fe279e7c8b45435878b40f63 | // { dg-do assemble }
// { dg-options "-Wno-deprecated" }
// prms-id: 13417
class Foo {
public:
explicit Foo (int){}
};
Foo f(10);
Foo blat() return f(4){} // { dg-error "" } named return value
|
google | chromium | 14664-1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/14664-1.C | 281 | utf_8 | c59a9517eb45dfc4a9bd3aac3da06f8c | // { dg-do assemble }
// 981203 bkoz
// g++/14664 - test
char foo[26];
void bar()
{
//-g++: incompatible types in assignment of 'const char[]' to 'char[]'
//-edg: expression must be a modifiable lvalue
foo = "0123456789012345678901234"; // { dg-error "" } // ERROR -
}
|
google | chromium | 13908 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/13908.C | 344 | utf_8 | 7c659bbd81a9ba7b33c3ee689255fcb4 | // { dg-do assemble }
// 981203 bkoz
// g++/13908
class chile
{
public:
protected:
private:
};
typedef void (chile::* pmf) ();
void* foo;
void bar (chile* pobj, pmf pmethod)
{
//-edg: expected member name
//-g++: taking address of bound pointer-to-member expression
foo = (void*) &(pobj->*pmethod); // { dg-e... |
google | chromium | warn02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C | 830 | utf_8 | fec34aac1bc45a5e706a8abdc0c63892 | // { dg-do assemble }
// { dg-options "-Wredundant-decls" }
// 980413 bkoz
// from g++/15307, tests for -Wredundant-decls
// for friend functions and functions
extern int foo(const char *);
class A
{
friend int foo(const char *);
int a;
};
class B
{
friend int foo(const char *);
int foo2() {return b;}
... |
google | chromium | 17922 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/17922.C | 271 | utf_8 | 27a86b8b32a717230fd24343d8516522 | // { dg-do assemble }
// 981204 bkoz
// g++/17922
class base { };
struct derived : public base {
derived (const derived&);
derived (const base&);
};
class tahiti {
public:
static void mf (derived);
};
void foo (const derived aaa) {
tahiti::mf(aaa);
}
|
google | chromium | tem05 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C | 1,538 | utf_8 | 1b14068d5cd59524944ff0e4282e9230 | // { dg-do assemble }
// 980924 bkoz
// just a quick test for export, to make sure we are warning for it.
// CHANGE ME when it's supported
// 14 Templates
//p 6
// A namespace-scope declaration or definintion of a non-line function
// template, a non-inline member function template, a non-inline
// member function o... |
google | chromium | typedef01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/typedef01.C | 1,126 | utf_8 | 74057c6a3feaefae028070f7004ef7f6 | // { dg-do assemble }
//980205 bkoz
//7.1.3 the typedef specifier
//p1
typedef int MILES, *KLICKSP;
MILES distance;
extern KLICKSP metricp;
//p2--can redefine to same type
typedef struct s { /* ... */ } s;
typedef int I;
typedef int I;
typedef I I;
//p3--cannot redefine to a different type in a given scope
class ... |
google | chromium | tem02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C | 1,428 | utf_8 | d3a1d8c5e1eb5bb34389eea5ab4ba473 | // { dg-do assemble }
//980519 bad error from nathan
//$ egcs -fhonor-std -nostdinc -c redef.C
//redef.C:56: redefinition of default argument for `class _Traits'
template<class _CharT> struct char_traits;
template<class _CharT> struct char_traits { };
template<> struct char_traits<char>;
template<> struct char_traits... |
google | chromium | 14664-2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C | 189 | utf_8 | f5ab8f5b3569671c9c11f4da5a9921f4 | // { dg-do assemble }
// { dg-options "-fpermissive -w" }
// 981203 bkoz
// g++/14664 + test
char foo[26];
void bar()
{
foo = "0123456789012345678901234"; // { dg-error "array" }
}
|
google | chromium | 15071 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C | 175 | utf_8 | 789ddec926eff48703b703ecafe1fee5 | // { dg-do run }
// 981203 bkoz
// g++/15071
// gcc invocation fails to link in libstdc++
#include <iostream>
int main() {
std::cout << "hi" << std::endl;
return 0;
}
|
google | chromium | 14139 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/14139.C | 518 | utf_8 | d6f0470ac6fca8cc091e4f0cc4733335 | // { dg-do assemble }
// 981203 bkoz
// g++/14309
// test for global functions, mf's, and templatized mf's.
static int fooe_1(void) { return 5; }
static int fooe_2(int x = fooe_1()) { return x; }
struct antigua {
static int& foo_1();
static int foo_2(int& x = antigua::foo_1());
static int foo_3(int x = fooe_2(... |
google | chromium | tem07 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/tem07.C | 306 | utf_8 | 7925d70b3542542fe6133d14532c6e4a | // { dg-do run }
template <class T>
class Foo
{
public:
Foo(const T&);
Foo(const T&, const T&);
};
template <class T>
Foo<T>::Foo(const T& t0)
{
}
template <class T>
Foo<T>::Foo(const T& t0, const T& t1)
{
}
template Foo<int>::Foo(const int& t0);
int main (void) {
return 0;
}
|
google | chromium | scope02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/scope02.C | 4,425 | utf_8 | 453a3b212db6e61696c8769142831bbd | // { dg-do assemble }
//980529 bkoz
//3.4.5 Class member access via pointer and non-pointer
// non-nested dtor calls
int counter = 0;
struct X {
int rank;
X(int init = 64) : rank(init) { }
~X() { ++counter; }
typedef X classtype;
};
typedef X globaltype;
#if 0
template <typename T>
struct X_tem {
T rank;
... |
google | chromium | typedef03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/typedef03.C | 917 | utf_8 | f2929f837162a135c11590ea2c8b94cd | // { dg-do assemble }
//980526 bkoz
// reduced testcase for 980511 brendan qt bug
class QTextStream
{
public:
QTextStream();
virtual ~QTextStream();
enum {
skipws = 0x0001,
left = 0x0002,
right = 0x0004,
internal = 0x0008,
bin = 0x0010,
oct = 0x0020,
dec ... |
google | chromium | 15800-1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/15800-1.C | 269 | utf_8 | 6da38106e09dac4d4c4a80fcbecd31f9 | // { dg-do assemble }
// 981203 bkoz
// g++/15800 - test
struct panama {
panama();
panama(panama &);
panama& operator=(panama&); // { dg-message "candidates" }
};
extern panama dig();
void foo() {
panama obj;
obj = dig(); // { dg-error "no match" }
}
|
google | chromium | bool02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/bool02.C | 938 | utf_8 | 9fa48ee5b1d42c38113303ab2eea5d36 | // { dg-do run }
//980324 bkoz
//test for bool and bitwise ands
#include <assert.h>
void bar ( bool x ) {}
void bars ( short x ) {}
#if 0
int andb(){
bool y;
bar ( y );
int blob = ( 27 & int (y) );
return blob; //expect 1 or 0
}
#endif
int andbtrue(){
bool y = true;
bar ( y );
int blob = ( 27 & in... |
google | chromium | p12475 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C | 302 | utf_8 | d58658c34caeaa0dc37740f37cec331c | // { dg-do assemble }
// prms-id: 12475
#include <limits.h>
#if LONG_MAX == 2147483647
#define TEST 2147483648
#elif LONG_MAX == 9223372036854775807
#define TEST 9223372036854775808
#else
#error "Unsupported test -- add new constants."
#endif
enum huh { start =-TEST, next }; // { dg-warning "" }
|
google | chromium | 900212_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900212_01.C | 921 | utf_8 | 1caa62a8fd0034d34fdf5a8e206b8c49 | // { dg-do assemble }
// g++ 1.36.1 bug 900212_01
// g++ fails to flag as errors all attempts to add or subtract integer values
// from pointers-to-member values.
// Some cases are detected however.
// Cfront 2.0 passes this test.
// keywords: pointer arithmetic, member pointers
struct struct0 {
};
int struct0::... |
google | chromium | 900322_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900322_01.C | 2,307 | utf_8 | 4304711ea5896ee44a4f67cb72abf33c | // { dg-do assemble }
// g++ 1.37.1 bug 900322_01
// ** Old, obsolete commentary:
// **************************************************************************
// The ANSI C standard, in section 3.1.2.5 (first paragraph) differentiates
// types into three disjoint sets, i.e object types, function types, and
// incomp... |
google | chromium | 900402_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900402_01.C | 323 | utf_8 | b2c690f79b9e0981a2f96dcdcdf7e947 | // { dg-do assemble }
// g++ 1.37.1 bug 900402_01
// The following erroneous code causes g++ to abort.
// Cfront 2.0 passes this test.
// keywords: abort, bit-fields, function types
typedef void (func_type) ();
struct s {
func_type f:32; // { dg-error "" } bitified with function type
};
int main () { return 0;... |
google | chromium | 900404_07 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900404_07.C | 414 | utf_8 | 5390282e50e04854bcdcafbf527ddcca | // { dg-do assemble }
// g++ 1.37.1 bug 900404_07
// It is illegal to use a cast to attempt to convert an object type
// to a non-scalar type (e.g. an array type).
// g++ fails to properly flag as errors such illegal uses of array types.
// keywords: array types, casts, type conversion
typedef int array_type[10];
... |
google | chromium | 900221_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900221_01.C | 475 | utf_8 | 9ca59f87faf9b2f3195d8bc7355cbf0b | // { dg-do assemble }
// g++ 1.36.1 bug 900221_01
// Ref: 3.2
//
// Section 3.2 of the C++ 2.0 Reference Manual says:
//
// "Names of formal arguments for a function are treated as if they
// were declared in the outermost block of that function"
//
// g++ does not enforce this treatment.
// Cfront 2.0 passes this t... |
google | chromium | 891229_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/891229_02.C | 592 | utf_8 | c25c74f968219da79d08ed1d49c047e4 | // { dg-do assemble }
// g++ 1.36.1 bug 891229_02
// g++ limits the scope of names which are declared as typedef names within
// another type to that other type.
// This conflicts with the (global) scope given to such names by cfront 2.0.
// Cfront 2.0 passes this test.
// Note 2/15/94: The standard has changed; ... |
google | chromium | 900407_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900407_01.C | 748 | utf_8 | 98b233cef5cf2faa9c7403a4afd54462 | // { dg-do assemble }
// g++ 1.37.1 bug 900407_01
// g++ fails to flag errors for uses of anachronistic features such as the
// invocation of a base class constructor in a ctor-initializer list without
// explicitly giving its name.
// Errors should probably be issued for such usage unless the -traditional
// option... |
google | chromium | 900208_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900208_03.C | 500 | utf_8 | 61d8cd21ad4d1060a0881672ce1b0133 | // { dg-do assemble }
// g++ 1.36.1 bug 900208_03
// The Cfront 2.0 reference manual (5.3.3) says "This type must be an
// object type; functions cannot be allocated this way...".
// g++ fails to detect (at compile time) cases where an attempt is made to
// allocate a function using new.
// keywords: operator new, ... |
google | chromium | 900220_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900220_02.C | 654 | utf_8 | 2a8b87bd0b980874491bd21a47307da3 | // { dg-do run }
// g++ 1.36.1 bug 900220_02
// g++ treats plain `char' and `unsigned char' as different types, however
// it fails to treat `signed char' as being a different type from plain
// `char' as called for by both the ANSI C standard and the C++ reference
// manual.
// keywords: plain char type, signed char ... |
google | chromium | 900331_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900331_02.C | 599 | utf_8 | d581b2639f5bf26e22714a3e979dc43c | // { dg-do run }
// g++ 1.37.1 bug 900331_02
// g++ fails to treat conditional expressions which yield composite type
// (i.e. struct type, union type, or class type) lvalues as if they did
// in fact yield lvalues in all cases.
// Cfront 2.0 passes this test.
// keywords: conditional operator?:, lvalues, composite... |
google | chromium | 900520_06 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900520_06.C | 1,546 | utf_8 | 365ad489a4b8cb4d59c97741b1d326bb | // { dg-do run }
// g++ 1.37.1 bug 900520_06
// When an object of a class type is passed into a formal parameter of the
// same class type (in a function call) the language definition calls for
// this action to be treated like any other form of an initialization of
// an object of the given class type.
// g++ fails... |
google | chromium | 900205_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900205_03.C | 1,294 | utf_8 | 61e81cdec2f0d5f67a0b0594f7678836 | // { dg-do assemble }
// { dg-options "-Wreturn-type -pedantic-errors" }
// g++ 1.36.1 bug 900205_03
// Section 6.6.3 of the cfront 2.0 Reference Manual says "A return statement
// without an expression can be used only in functions that do not return
// a value, that is, a function with the return value type void...... |
google | chromium | 900207_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900207_03.C | 1,323 | utf_8 | e93debd4450b4bd4c90f612064b8ce9b | // { dg-do run }
// g++ 1.36.1 bug 900207_03
// g++ fails to allow objects of class or struct types to be initialized
// using "constructor syntax" in cases where an implicitly generated copy
// constructor would be invoked for the initialization, and where there is
// no explicitly specified constructor associated w... |
google | chromium | 900428_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900428_03.C | 837 | utf_8 | 7e515a8df49f2eaf093c9547f48bd446 | // { dg-do assemble }
// g++ 1.37.1 bug 900428_03
// g++ fails to detect cases where a constructor for a derived class invokes
// (either explicitly or implicitly) a private constructor for a base class.
// cfront 2.0 passes this test.
// keywords: inheritance, private, accessability, constructors
struct struct_0 ... |
google | chromium | 900324_06 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900324_06.C | 777 | utf_8 | a6ad70bbfac742846a7f5068bc830b87 | // { dg-do run }
// g++ 1.37.1 bug 900324_06
// g++ is unable to use context information (i.e. the required type of the
// expression) to disambiguate a possibly overloaded function name when that
// name is used as either the second or the third operand of a ?: operator.
// It is also unable to use the fact that th... |
google | chromium | 900324_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900324_03.C | 481 | utf_8 | 9aa66ee213cd895a0d92bb77ba0b9684 | // { dg-do run }
// g++ 1.37.1 bug 900324_03
// g++ is unable to correctly parse declarations of non-global function-pointer
// variables and/or function-pointer formal parameters.
// Cfront 2.0 passes this test.
// keywords: syntax, function pointers, block local, formal
void (*p0)(); // OK
void function_0 ()... |
google | chromium | 900519_12 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_12.C | 275 | utf_8 | ac9a5240763e641aff84b4edf13031ce | // { dg-do assemble }
// g++ 1.37.1 bug 900519_12
// The following erroneous code causes g++ to segfault.
// cfront 2.0 passes this test.
// keywords: segfault, typedef, pointer type, function type
typedef eek void (*)(); // { dg-error "" }
int main () { return 0; }
|
google | chromium | 900519_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_02.C | 999 | utf_8 | 15ef0a9ea6006db844a745c2faa14265 | // { dg-do assemble }
// g++ 1.37.1 bug 900519_02
// The C++ Reference Manual says (in section 8.4.3) "A reference to a plain
// T can only be initialized with a plain T" however g++ allows the
// initialization of plain references with qualified objects in many cases.
// keywords: references, initialization, type q... |
google | chromium | 900227_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900227_01.C | 1,633 | utf_8 | 2f41c0d40bd81fbd38682c574c358d0a | // { dg-do assemble }
// { dg-options "" }
// g++ 1.37.1 bug 900227_01
// g++ allows pointer type values to be converted to integral types which are
// not actually large enough to hold the converted values.
// Section 3.3.4 of the ANSI C standard says:
// A pointer may be converted to an integral type. The size o... |
google | chromium | 900205_04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900205_04.C | 911 | utf_8 | 0f2212f337b2f59028536796d4c65d66 | // { dg-do assemble }
// g++ 1.36.1 bug 900205_04
// g++ allows a class for which an implicit default X::X() constructor must
// be created (implicitly by the compiler) to be derived from another class
// which does not have its own default X::X() constructor. This is illegal.
// Cfront 2.0 passes this test.
// ke... |
google | chromium | 900402_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C | 516 | utf_8 | 7ddab4ab373be7b60b25f124d05590fe | // { dg-do assemble }
// g++ 1.37.1 bug 900402_02
// g++ fails to correctly flag all attempts to construct an array type
// of zero length as errors.
// keywords: arrays, array bound, zero length
typedef int array_type[0]; // { dg-error "zero-size array" }
int array_object_1[0]; // { dg-error "zero-size array" ... |
google | chromium | 900404_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900404_01.C | 471 | utf_8 | 9ce300e0f9e6df86bea8c5421165dc2b | // { dg-do assemble }
// g++ 1.37.1 bug 900404_01
// g++ allows string initializers for known-length character arrays to be
// one character longer (counting the terminating null) than the actual
// length of the array to be initialized.
// The C++ Reference Manual (section 8.4.2) expressly prohibits this.
// Cfron... |
google | chromium | 900127_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900127_02.C | 1,214 | utf_8 | e244eba70fd5a2dcd2e94411d647ecde | // { dg-do assemble }
// g++ 1.36.1 bug 900127_02
// g++ (mostly) keeps separate name spaces for the declarations of data
// objects and functions.
// This means that a single name may be declared as both a data object and
// a function within a given scope.
// This fact allows programmers to write code which is no... |
google | chromium | 900215_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900215_01.C | 1,103 | utf_8 | c450a62abe78fccfcf808f72fc572e5a | // { dg-do assemble }
// g++ 1.36.1 bug 900215_01
// g++ allows the definition of a type conversion operator `operator void'
// for class types, but subsequently fails to generate calls (where needed)
// for such type conversion operators.
// Cfront 2.0 does generate such calls.
// The following program exits with ... |
google | chromium | 900514_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900514_03.C | 2,478 | utf_8 | c9be3deae07283ba9821a05349f0a47d | // { dg-do assemble }
// g++ 1.37.1 bug 900514_03
// g++ fails to flag ERRORs on the following erroneous code.
// In Section 12.3.2 it says "Defining conversion by both a constructor and
// a conversion function can lead to ambiguities." However in the case below,
// the explicit cast syntax disambiguates the const... |
google | chromium | 900519_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_03.C | 1,289 | utf_8 | 4336072eafc67d1b21b6de9c1faa6dd5 | // { dg-do assemble }
// g++ 1.37.1 bug 900519_03
// The C++ Reference Manual says (in section 8.4.3) "A reference to a
// volatile T can be initialized with a volatile T or a plain T but not a
// const T. A reference to a const T can be initialized with a const T or
// a plain T or something that can be converted ... |
google | chromium | 900406_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900406_01.C | 372 | utf_8 | 56b3109f93c4aee9592ddbf3c51a1730 | // { dg-do assemble }
// g++ 1.37.1 bug 900406_01
// The following code causes g++ to segfault.
// cfront 2.0 passes this test.
// keywords: segfault, operator new, array types, array bounds
void function0 ()
{
new int[]; // { dg-error "" } causes segfault
}
void function1 ()
{
new int (*)[]; // { dg-error "... |
google | chromium | 900519_06 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_06.C | 682 | utf_8 | e0be39fecdbfe995ba780091f74dcccb | // { dg-do assemble }
// g++ 1.37.1 bug 900519_06
// g++ allows the type given in an invocation of operator new to be a
// reference type.
// Since pointers to reference types are illegal, the required return type
// from such an invocation (of operator new) is illegal, and thus (it seems)
// the entire call to new ... |
google | chromium | 900210_06 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900210_06.C | 619 | utf_8 | a8f1ea23e326c034a480ba87a1cbe8b8 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_06
// g++ allows values of pointer-to-const types to be assigned to variables
// of pointer-to-non-const types.
// Cfront 2.0 disallows such assignments.
// g++ also allows values of pointer-to-volatile types to be assigned to
// variables of pointer-to-non-volatile ty... |
google | chromium | 900213_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900213_01.C | 732 | utf_8 | 62b45e4698b10fd61f481b5ea11fe0d5 | // { dg-do assemble }
// g++ 1.36.1 bug 900213_01
// g++ incorrectly diagnoses the error when an attempt is made to reference
// a non-static data-member without an object indication.
// Similar attempts to reference non-static function-members are correctly
// diagnosed by g++.
// Cfront 2.0 passes this test.
// ... |
google | chromium | 900210_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900210_03.C | 644 | utf_8 | b33ab90f692509c5ef0e0ac54be52859 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_03
// g++ allows void* type values to be assigned to variables of other
// pointer types. According to the C++ Reference Manual, this is illegal.
// Cfront 2.0 passes this test.
// keywords: void pointers, pointer type conversions, implicit type conversions
void* vp;... |
google | chromium | 900428_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900428_01.C | 5,518 | utf_8 | 4254712d86c1247e0bb7a4a557701342 | // { dg-do assemble }
// g++ 1.37.1 bug 900428_01
// g++ fails to issue error messages for cases where an incomplete type
// object must be evaluated if the value of such an evaluation is not
// actually used in the given context.
// In the case where such an object is volatile, it is obvious that this
// could be a... |
google | chromium | 900208_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900208_02.C | 455 | utf_8 | de65ccdcb52c011f5be6425612645ce0 | // { dg-do run }
// g++ 1.36.1 bug 900208_02
// g++ does not allow a static member of a class/struct/union to be
// declared as an array without an explicit upper bound.
// Cfront 2.0 passes this test.
// keywords: static data members, arrays, dimension, array bound
class class0 {
public:
static int class0_data_... |
google | chromium | 900520_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900520_03.C | 1,893 | utf_8 | 8c745c14f9e9fb9fa964d31b1fefb542 | // { dg-do assemble }
// g++ 1.37.1 bug 900520_03
// The C++ Reference Manual says (in section 8.2.4):
// When an identifier of array type appears in an expression, except
// as the operand of sizeof or & or used to initialize a reference,
// it is converted into a pointer to the first member of the array.
// One m... |
google | chromium | 900205_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900205_02.C | 571 | utf_8 | f03ee51aea223ecc3e1d9989152fcd9f | // { dg-do assemble }
// g++ 1.36.1 bug 900205_02
// g++ allows constructors to be defined which do not include
// initializations for reference members of their associated classes.
// Cfront 2.0 does not allow this.
// keywords: reference members, constructors, member initialization
int i;
class c0 {
int &int_... |
google | chromium | 900325_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900325_01.C | 379 | utf_8 | 63f3022e6a8a4aa50e06adc840f4717d | // { dg-do assemble }
// g++ 1.37.1 bug 900325_01
// g++ fails to generate errors for attempts to declare a formal argument to
// be of a void type.
// keywords: formal parameter, void type
typedef void __void;
typedef __void Void;
void function0 (void arg1) { // { dg-error "" } missed
}
void function1 (Void arg1... |
google | chromium | 900213_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900213_02.C | 357 | utf_8 | 1e493cf474c7780bda4e617f2799701d | // { dg-do assemble }
// g++ 1.36.1 bug 900213_02
// The following erroneous code causes g++ to abort.
// Cfront 2.0 passes this test.
// keywords: abort, member pointers, operator*
struct struct0 {
int data_member;
};
int i;
int struct0::*dmp;
void global_function_0 ()
{
i = *dmp; // { dg-error "" } cause... |
google | chromium | 900331_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900331_03.C | 628 | utf_8 | 4f31c4bcb0fc662ba06aa9b872dfd7a3 | // { dg-do run }
// { dg-options "" }
// g++ 1.37.1 bug 900331_03
// Special Options: -ansi
// The following code causes g++ to abort.
// Curiously, the abort does not occur if the -pedantic option is used.
// Cfront 2.0 passes this test.
// Keywords: abort, conditional operator?:, lvalues, composite types
struc... |
google | chromium | 900121_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900121_02.C | 954 | utf_8 | 12ff2e1f8048db7e0dcdc84f8c12edc6 | // { dg-do assemble }
// g++ 1.36.1 bug 900121_02
// Assignment of structs is defined as memberwise assignment,
// however g++ (1.36.2) and Cfront 2.0 differ on the definition
// of assignment for unions.
// (NOTE: Stroustrup now says that assignment of unions which contain either
// members or sub-members (base cla... |
google | chromium | 900209_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900209_01.C | 554 | utf_8 | 53a5eae1f920d333696f18640f990961 | // { dg-do assemble }
// g++ 1.36.1 bug 900209_01
// g++ implicitly casts values whose types are "void*" to other pointer
// types (just as the language rules for C permit). Such implicit
// conversions are not allowed by the Cfront 2.0 Reference Manual
// however.
// Cfront 2.0 passes this test.
// keywords: void... |
google | chromium | 900210_10 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900210_10.C | 323 | utf_8 | 8784bafd753c84e2a08c4e00f7a6b8d3 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_10
// g++ allows operator[] to be declared as a static member function.
// This is illegal.
// Cfront 2.0 passes this test.
// keywords: operator[], static function members
struct struct0 {
static int operator[] (); /* { dg-error "" } */
};
int main () { return 0;... |
google | chromium | 900519_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_01.C | 390 | utf_8 | d02aeec7eaafc8333c72af9f6e048ff0 | // { dg-do assemble }
// g++ 1.37.1 bug 900519_01
// g++ fails to flag errors for some attempts to declare or define non-member
// type conversion operators.
// cfront 2.0 passes this test.
// keywords: user-defined type conversion operator, non-member
extern operator int (); // { dg-error "" }
extern operator ... |
google | chromium | 900121_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C | 415 | utf_8 | 40a63e2f46749b91cd73cc6edd8e881d | // { dg-do assemble }
// g++ 1.36.1 bug 900121_01
// The following file causes g++ 1.36.1 (and 1.36.2) to abort.
// Cfront 2.0 passes this test.
// keywords: abort, incomplete types, reference types, formal parameters
struct s0; // { dg-error "" } forward declaration
void function (struct s0 &arg1, s... |
google | chromium | 900401_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900401_01.C | 306 | utf_8 | 41c2bae6ed7346172ccef788ddf8e9d7 | // { dg-do assemble }
// g++ 1.37.1 bug 900401_01
// The following erroneous code causes g++ to abort.
// Cfront 2.0 passes this test.
// keywords: abort, bit-fields, arrays
typedef unsigned nibble_array[4];
struct whole {
nibble_array nibbles:16; // { dg-error "" }
};
int main () { return 0; }
|
google | chromium | 900210_08 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900210_08.C | 388 | utf_8 | 9e00b67da73217bd8eeac124e326b5bf | // { dg-do assemble }
// g++ 1.36.1 bug 900210_08
// g++ allows pointer-to-const values to be implicitly converted to
// void* values. This causes a silent loss of the const qualifier.
// Cfront 2.0 passes this test.
// keywords: pointer types, implicit type conversions
const char *ccp;
void *vp;
void function (... |
google | chromium | 900404_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900404_03.C | 524 | utf_8 | aafbe08bde2c86ffa855c88d6df524dc | // { dg-do assemble }
// g++ 1.37.1 bug 900404_03
// g++ fails to be able to properly flag errors for even simple cases of
// ambiguous overload resolution (such as the one shown below).
// Cfront 2.0 passes this test.
// keywords: overloading, ambiguity, resolution
void function0 (int i, char c) // { dg-message "... |
google | chromium | 900519_05 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_05.C | 369 | utf_8 | 7d3b7aaac399fac800937dd08d251cec | // { dg-do run }
// g++ 1.37.1 bug 900519_05
// g++ fails to allow the use of function-reference types.
// cfront 2.0 passes this test.
// keywords: function types, reference types
typedef void (func_type) (int, int);
typedef func_type& func_ref_type;
void function (int arg1, int arg2)
{
}
func_type& global_fu... |
google | chromium | 900520_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C | 641 | utf_8 | 1dde2237cd5c582b9b0fed0cec6e9a57 | // { dg-do assemble }
// g++ 1.37.1 bug 900520_02
// keywords: reference types, initialization, parameter passing
typedef int b_array[3];
typedef int u_array[];
typedef b_array &b_array_ref;
typedef u_array &u_array_ref;
void take_b_array_ref (b_array_ref arg) { } // { dg-error "" } passed to here
extern u_array ... |
google | chromium | 900324_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900324_02.C | 355 | utf_8 | 6945fd915b0830d42d9cdef2a60ab7a7 | // { dg-do assemble }
// g++ 1.37.1 bug 900324_02
// The following erroreous code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, function pointer, conditional operator ?:
void function_0 (int i) { }
void (*fp)(void);
void function_1 ()
{
fp = 1 ? function_0 : fp; // { dg-error ... |
google | chromium | 900119_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900119_01.C | 1,294 | utf_8 | 395583b16ced92b7c298f752fcb17dde | // { dg-do assemble }
// g++ 1.36.1 bug 900119_01
// g++ allows initializers to be included in the declaration of members
// of classes, structs, unions (even when -pedantic is used).
// This is not allowed by the C++ 2.0 Reference Manual or by Cfront 2.0.
// keywords: member declaration, member initialization
int... |
google | chromium | 900210_07 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900210_07.C | 482 | utf_8 | 25b8398da50b1cee3d0facbcb1a12fa5 | // { dg-do assemble }
// { dg-options "" }
// g++ 1.36.1 bug 900210_07
// g++ allows values of pointer-to-signed types to be assigned to variables
// of pointer-to-unsigned types, and vise versa.
// Cfront 2.0 passes this test.
// keyowrds: pointer types, implicit type conversions
// Special Options: -ansi -pedanti... |
google | chromium | 900511_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900511_01.C | 744 | utf_8 | b1c7b3e270e0d71b8936cef937980314 | // { dg-do run }
// g++ 1.37.1 bug 900511_01
// g++ fails to properly apply user-defined type conversion operators
// in cases where is it not obvious that the given conversion is
// appropriate for the context (i.e. operator and other operands)
// where the conversion should take place.
// cfront 2.0 passes this te... |
google | chromium | 900121_05 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C | 615 | utf_8 | 49bf7f97dafc8f72295a1e487dfa4abc | // { dg-do assemble }
// g++ 1.36.1 bug 900121_05
// g++ allows unions to have base types (i.e. to be "derived") and it allows
// other types to have unions as base types. Both cases are illegal.
// g++ curently does not detect such errors.
// Cfront 2.0 passes this test.
// keywords: unions, inheritance
struct ... |
google | chromium | 900215_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900215_02.C | 1,360 | utf_8 | c7603210d7a3ac217ae189482083cc41 | // { dg-do assemble }
// g++ 1.36.1 bug 900215_02
// g++ allows global objects (which happen to be pointers to members of some
// class X) to be dereferenced without prefix object specifications within
// member functions of class X.
// In effect, g++ treats any dereference of a pointer-to-member which appears
// w... |
google | chromium | 900403_04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900403_04.C | 278 | utf_8 | 4216a63f8b9a5ea7ffd4163819a4b63e | // { dg-do assemble }
// g++ 1.37.1 bug 900403_04
// The following erroneous code causes g++ to abort.
// keywords: abort, bit-fields, zero length
struct s {
unsigned int foo:0; // { dg-error "" } This is the real line
unsigned int field;
};
int main () { return 0; }
|
google | chromium | 900519_13 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_13.C | 1,084 | utf_8 | 95dafd512d7130ff95d0622be36cb803 | // { dg-do assemble }
// g++ 1.37.1 bug 900519_13
// If multiple inheritance creates a situation in which a given name is
// inherited from more than one base class, and if the inherited declarations
// for the name are for different categories of members (e.g. object members,
// function members, enumeral members), ... |
google | chromium | 900321_04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900321_04.C | 321 | utf_8 | b2b96c7ebd782c8f5262719e72124b85 | // { dg-do run }
// g++ 1.37.1 bug 900321_04
// The following code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, object declaration, pointer, array, incomplete type
struct incomplete;
void function ()
{
struct incomplete (*ptr)[]; // causes segfault
}
int main () { return 0; }... |
google | chromium | 900330_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900330_02.C | 756 | utf_8 | 4e7c6ecb58eb0eeb878a2a1e5404f9fe | // { dg-do assemble }
// g++ 1.37.1 bug 900330_02
// The C++ Reference Manual says in section 13.1:
// "Two function declarations of the same name refer to the same function
// if they are in the same scope and have identical argument types. A
// function member of a derived class is *not* in the same scope as a fu... |
google | chromium | 900406_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900406_02.C | 496 | utf_8 | 91c5f6fa069ce699055f60aff08860cb | // { dg-do run }
// g++ bug 900406_02
// g++ fails to correctly parse some type specifications within casts.
// This results in incorrect errors being issued.
// These errors are not issued for identical code by either cfront or
// by gcc.
// cfront 2.0 passes this test.
// keywords: syntax, array types, casts
i... |
google | chromium | 900520_05 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900520_05.C | 388 | utf_8 | e04f0d66f5d7d54dcb1732090fd6134e | // { dg-do run }
// g++ 1.37.1 bug 900520_05
// The following legal code gets syntax errors from g++.
// keywords: syntax, unimplemented, operator new, initialization, pointer types
struct struct_0 {
};
char *cp;
static struct_0 *sp;
void test0 ()
{
new char * (cp); // { dg-bogus "" }
}
void test1 ()
{
new... |
google | chromium | 900213_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900213_03.C | 615 | utf_8 | 69921538d135ee9fc08350178f124fa7 | // { dg-do assemble }
// g++ 1.36.1 bug 900213_03
// g++ fails to detect an error when the address of a "bound" function is
// assigned to a pointer-to-member-function variable.
// It does however correctly detect a similar errors for data-members.
// keywords: bound function, operator&, member pointers
struct str... |
google | chromium | 900210_05 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900210_05.C | 1,395 | utf_8 | d2e249bd273e50ba61f866d644ecc468 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_05
// Section 18.3 of the 2.0 Reference Manual says "An implementation
// providing { anachronistic features } should also provide a way for
// the user to ensure that they do not occur in a source file."
// The *only* proper way to "ensure" an absence of anachronstic f... |
google | chromium | 900212_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900212_03.C | 636 | utf_8 | 8865095e02ecca4e1b9d6cde406c8498 | // { dg-do run }
// g++ 1.36.1 bug 900212_03
// g++ segfaults on any attempt to use the ->* operator.
// Cfront 2.0 passes this test.
// keywords: member pointers, operator->*
struct struct0 {
int data_member;
void function_member ();
};
void struct0::function_member ()
{
}
int i;
int struct0::*dmp;
void (s... |
google | chromium | 900404_04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900404_04.C | 512 | utf_8 | 556dbc5118f231ade8f41134ea065eb2 | // { dg-do assemble }
// g++ 1.37.1 bug 900404_04
// [dcl.dcl] explains that simple-declarations may omit the
// init-declarator-list only if the decl-specifier-seq declares a
// class, i.e. if it contains a class-specifier, an
// elaborated-type-specifier with class key, or an enum-specifier. The
// declaration belo... |
google | chromium | 900210_09 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900210_09.C | 732 | utf_8 | e9b978752f3e6b3a803beab6d95eb453 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_09
// g++ allows pointer to members (both data members and function members)
// to be implicitly converted to void*.
// Section 4.8 of the Cfront 2.0 Reference Manual disallows such implicit
// conversions.
// Cfront 2.0 passes this test.
// keywords: member pointers,... |
google | chromium | 900519_07 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C | 518 | utf_8 | 268e60b32ad15bd25e180b2b383ae862 | // { dg-do assemble }
// g++ 1.37.1 bug 900519_07
// It is illegal to specify or to use array-of-reference types, yet g++
// allows them to be specified (in typedef statements and in declarations)
// and to be used (in declarations).
// keywords: reference types, array types
int i;
int j;
typedef int& int_ref;
typ... |
google | chromium | 900520_04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900520_04.C | 1,200 | utf_8 | 32f9838a2677f4322d6422963ad75321 | // { dg-do run }
// g++ 1.37.1 bug 900520_04
// g++ does not yet support the initialization of scalar type objects
// (including built-in arithmetic types, enum types, and pointer types)
// via constructor initialization syntax except within a call to operator
// new.
// keywords: unimplemented, syntax, initializati... |
google | chromium | 900208_04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900208_04.C | 551 | utf_8 | 4fb212343fadaeac90f3fbc8f76a766e | // { dg-do assemble }
// g++ 1.36.1 bug 900208_04
// The Cfront 2.0 reference manual (5.3.3) says "This type must be an
// object type; functions cannot be allocated this way...".
// g++ fails to detect (at compile time) cases where an attempt is made to
// deallocate a function using delete.
// Cfront 2.0 passes t... |
google | chromium | 900428_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900428_02.C | 672 | utf_8 | 40d55f0463f2346d367636ae29a2483e | // { dg-do assemble }
// g++ 1.37.1 bug 900428_02
// g++ fails to issue either errors or warnings (even with -pedantic) for
// attempts to perform either pre or post increment or decrement operations
// on variables which have either pointer-to-void types or pointer-to-function
// types.
// cfront 2.0 passes this te... |
google | chromium | 900107_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900107_01.C | 831 | utf_8 | d316930e4fc77e247674bac7a76e3e3f | // { dg-do run }
// g++ 1.36.1 bug 900107_01
// Unlike GCC and Cfront 2.0, the g++ 1.36.1 compiler gives struct, union,
// and class declarations which are nested within blocks file scope.
// Cfront 2.0 passes this test.
// keywords: block scope, file scope, nested types, tagged types
class c1 { int c1_member1; };... |
google | chromium | 891230_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/891230_01.C | 466 | utf_8 | 9b34d1cbf33fa9da4871818fe8c72b3c | // { dg-do run }
// g++ 1.36.1 bug 891230_01
// g++ gives typedefs which are nested within class declarations a scope
// which is local to the class declaration itself. This causes examples
// like the following to get compile-time errors.
// Cfront 2.0 passes this test.
// keywords: typedef, nested types, scope
... |
google | chromium | 900321_05 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900321_05.C | 417 | utf_8 | 1f16211b8272d36ce36562af2f46ab67 | // { dg-do run }
// g++ 1.37.1 bug 900321_05
// The following code is legal as far as the ANSI C standard, GCC, and
// cfront are concerned, however g++ issues errors for the lines indicated.
// Cfront 2.0 passes this test.
// keywords: operator[], pointers, index
char c;
char *cp;
int i;
void function ()
{
c =... |
google | chromium | 900403_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900403_01.C | 447 | utf_8 | f94f78525b0f62afaadc1a57a6b875f5 | // { dg-do assemble }
// g++ 1.37.1 bug 900403_01
// g++ allows casts to be treated as lvalues (even when the -pedantic
// option is used). Neither the C++ Reference Manual nor cfront 2.0
// allow this. (gcc gives warnings for such usage with -pedantic).
// Cfront 2.0 passes this test.
// keywords: lvalues, casts... |
google | chromium | 900211_02 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900211_02.C | 558 | utf_8 | ff07ad9f2a0d93718ca5f6af614604ed | // { dg-do assemble }
// g++ 1.36.1 bug 900211_02
// g++ allows you to explicitly specify the return type for a type conversion
// operator.
// The Cfront 2.0 Reference Manual (12.3.2) says that this in not allowed.
// Cfront 2.0 passes this test.
// keywords: type conversion operators, return type
struct struct0... |
google | chromium | 900211_03 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900211_03.C | 313 | utf_8 | 6abd890f103a051448d93d9bda74c173 | // { dg-do assemble }
// g++ 1.36.1 bug 900211_03
// The following erroneous code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, operator new, arrays, undeclared, array bound
void function ()
{
char* new_base = new char[x]; // { dg-error "" }
}
int main () { return 0; }
|
google | chromium | 900519_04 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900519_04.C | 390 | utf_8 | 126ce9f8d7a9dea25b78727cf1afa373 | // { dg-do run }
// g++ 1.37.1 bug 900519_04
// The following legal code causes g++ to segfault.
// cfront 2.0 passes this test.
// keywords: segfault, references, initialization
int cint_obj = 9;
void take_cint_ref (int& arg) { }
int& cint_ref_0 = cint_obj;
int& cint_ref_1 = cint_obj;
void test_0 ()
{
take_c... |
google | chromium | 900214_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C | 505 | utf_8 | ca50103d8a74ed79191f5bd9542839e8 | // { dg-do assemble }
// g++ 1.36.1 bug 900214_01
// g++ allows function members of incomplete types to be declared to be
// friends of other types.
// Cfront 2.0 passes this test.
// keywords: friends, incomplete types, function members
struct A; // { dg-error "" } forward declaration
struc... |
google | chromium | 900211_01 | .C | native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.bugs/900211_01.C | 343 | utf_8 | eac9186df3d5a9c4add6a47ab8b7d668 | // { dg-do assemble }
// g++ 1.36.1 bug 900211_01
// g++ issues only warnings for calls to previously undeclared functions,
// however such calls are actually errors.
// Cfront 2.0 passes this test.
// keywords: undeclared, functions
void global_function_0 ()
{
global_function_1 (); /* { dg-error "" } */
}
int... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.