This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/2803] g++ fails where gcc succeeds
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2003 03:29:26 -0000
- Subject: [Bug c/2803] g++ fails where gcc succeeds
- References: <20010511084601.2803.hamdy@cdc.informatik.tu-datmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2803
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-13 03:29 -------
Simple example that fails in c but not in c++ but should:
int f(int i)
{
asm("":"+r"((short)i));
}
Another example:
int f(int i)
{
asm("":"+r"((long long)i));
}
We really need to remove this extension.