re PR c++/25632 (ICE with const int copied into two different functions)

PR c++/25632
	* g++.dg/other/pr25632.C: New test.

From-SVN: r109575
This commit is contained in:
Zdenek Dvorak 2006-01-11 12:39:49 +01:00 committed by Zdenek Dvorak
parent f851ee5c69
commit c6c0cc813b
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-01-11 Zdenek Dvorak <dvorakz@suse.cz>
PR c++/25632
* g++.dg/other/pr25632.C: New test.
2006-01-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25730

View File

@ -0,0 +1,17 @@
/* PR c++/25632 */
/* { dg-do compile } */
struct sockaddr_un {
char sun_path[1];
};
const unsigned SI_SUN_HEAD_LEN = (long)(((struct sockaddr_un *)0)->sun_path);
int SiGetPeerName ()
{
return SI_SUN_HEAD_LEN;
}
int SiAccept ()
{
return SI_SUN_HEAD_LEN;
}