forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cp-objcp-common.c (cxx_staticp): New function. * cp-objcp-common.h (LANG_HOOOKS_STATICP): Use it. * cp-tree.h (cxx_staticp): New function. PR c++/289991 * g++.dg/init/static3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116838 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
mmitchel
committed
Sep 11, 2006
1 parent
239f44d
commit dd4df4a
Showing
6 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
2006-09-10 Mark Mitchell <[email protected]> | ||
|
||
PR c++/28991 | ||
* cp-objcp-common.c (cxx_staticp): New function. | ||
* cp-objcp-common.h (LANG_HOOOKS_STATICP): Use it. | ||
* cp-tree.h (cxx_staticp): New function. | ||
|
||
2006-09-09 Jason Merrill <[email protected]> | ||
|
||
PR c++/28996 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2006-09-10 Mark Mitchell <[email protected]> | ||
|
||
PR c++/28991 | ||
* g++.dg/init/static3.C: New test. | ||
|
||
2006-09-10 Andrew Pinski <[email protected]> | ||
|
||
PR testsuite/29007 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// { dg-do run } | ||
|
||
struct T | ||
{ | ||
static void (*handler)(); | ||
static void func() {}; | ||
}; | ||
|
||
bool fail; | ||
|
||
struct S { | ||
S() { | ||
if (T::handler != T::func) | ||
fail = true; | ||
} | ||
}; | ||
|
||
static S s; | ||
|
||
void (*T::handler)() = func; | ||
|
||
int main() | ||
{ | ||
if (fail) | ||
return 1; | ||
} |