re PR c++/14106 ([testcase] ICE on template func instanciation: stor-layout.c:1569)
PR c++/14106 * g++.dg/ext/typeof9.C: New test. From-SVN: r78304
This commit is contained in:
parent
221ee7c920
commit
887d68d9e9
@ -1,3 +1,8 @@
|
|||||||
|
2004-02-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
||||||
|
|
||||||
|
PR c++/14106
|
||||||
|
* g++.dg/ext/typeof9.C: New test.
|
||||||
|
|
||||||
2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
||||||
|
|
||||||
PR c++/14250
|
PR c++/14250
|
||||||
|
17
gcc/testsuite/g++.dg/ext/typeof9.C
Normal file
17
gcc/testsuite/g++.dg/ext/typeof9.C
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// { dg-do compile }
|
||||||
|
|
||||||
|
// Origin: gcc-bug@vogtner.de
|
||||||
|
|
||||||
|
// PR c++/14106: ICE with typeof of function template.
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
void j (T i)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
void instanciate () {
|
||||||
|
static void (*fp) (T) = j;
|
||||||
|
__typeof__ (j) *p; // { dg-error "unknown|invalid" }
|
||||||
|
}
|
||||||
|
template void instanciate<float>();
|
Loading…
Reference in New Issue
Block a user