This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45303] Compile error when not using -ftree-ter
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2010 10:16:36 -0000
- Subject: [Bug c++/45303] Compile error when not using -ftree-ter
- References: <bug-45303-19514@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jakub at gcc dot gnu dot org 2010-08-17 10:16 -------
For inline-asm? Certainly not. Consider much simpler:
void foo (void)
{
int i;
i = 6;
asm volatile ("" : : "i" (i));
}
which will work with -O and above, but not for -O0, for exactly the same
reason.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45303