URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 1 June 2005
|
// Contributed by Nathan Sidwell 1 June 2005
|
|
|
// PR 20350: ICE on member specialization with later initialization
|
// PR 20350: ICE on member specialization with later initialization
|
// Origin: Carlo Wood carlo@gcc.gnu.org
|
// Origin: Carlo Wood carlo@gcc.gnu.org
|
|
|
template struct Mutex
|
template struct Mutex
|
{
|
{
|
static int mutex;
|
static int mutex;
|
};
|
};
|
|
|
template
|
template
|
int Mutex::mutex = {1};
|
int Mutex::mutex = {1};
|
|
|
template <> int Mutex<0>::mutex;
|
template <> int Mutex<0>::mutex;
|
template <> int Mutex<0>::mutex = 0;
|
template <> int Mutex<0>::mutex = 0;
|
|
|
void g()
|
void g()
|
{
|
{
|
Mutex<0>::mutex = 0;
|
Mutex<0>::mutex = 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.