diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-03 10:28:30 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-03 10:28:30 +0000 |
commit | e3a37aef272b028e7720f32f20f2cacab66ba1b1 (patch) | |
tree | a4d9a31ad1849aee61b7768db215e00ac788037e /libmudflap | |
parent | e0324ff58d5cbc7e9338e55dcdec24ee8fbef03c (diff) | |
download | gcc-e3a37aef272b028e7720f32f20f2cacab66ba1b1.tar.gz |
PR c++/34619
* cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
before returning.
* testsuite/libmudflap.c++/pass61-frag.cxx: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131302 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 5 | ||||
-rw-r--r-- | libmudflap/testsuite/libmudflap.c++/pass61-frag.cxx | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 081f14c2ed5..1c7313a38e4 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,8 @@ +2008-01-03 Jakub Jelinek <jakub@redhat.com> + + PR c++/34619 + * testsuite/libmudflap.c++/pass61-frag.cxx: New test. + 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de> PR libmudflap/26442 diff --git a/libmudflap/testsuite/libmudflap.c++/pass61-frag.cxx b/libmudflap/testsuite/libmudflap.c++/pass61-frag.cxx new file mode 100644 index 00000000000..03046112c46 --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c++/pass61-frag.cxx @@ -0,0 +1,20 @@ +// PR c++/34619 +// { dg-do compile } + +template <typename> struct A +{ + typedef int X; + static const int N = 1; +}; + +template <typename T> struct B +{ + typedef typename A <int [A <T>::N]>::X Y; + template <typename U> B (Y, U) {} +}; + +int main () +{ +} + +B <int>b (0, 0); |