blob: f5b4b23ea0a2faf78d99e7bf1e886acf73323846 [file] [log] [blame]
// PR c++/34094
// The error is reported for mips*-elf* targets, but as of binutils CVS
// 2008-02-19, the linker cannot find the associated source line. The
// problem is that mips*-elf tests run from KSEG0 (which is in the upper
// half of the address range), and the linker compares sign-extended
// addresses from .debug_aranges with unextended addresses.
// { dg-do link { target { ! { hppa*-*-hpux* mips*-*-elf* } } } }
// { dg-options "-g" }
namespace {
struct c
{
static const bool t = 0;
};
}
const bool &f()
{
return c::t; // { dg-error "undefined" }
}
int main(void)
{
return 0;
}