Commit c6c0cc81 by Zdenek Dvorak Committed by Zdenek Dvorak

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
parent f851ee5c
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> 2006-01-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25730 PR fortran/25730
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment