This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/34830] rejects "i"(const_var) without -O1
- 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: 19 Jan 2008 12:07:22 -0000
- Subject: [Bug inline-asm/34830] rejects "i"(const_var) without -O1
- References: <bug-34830-11104@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-01-19 12:07 -------
Oh, in C++, const_var is a constant integral expression after all so that is
why it is accepted with C++ front-end, I had forgot the exact rules for C++ for
a second there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34830