This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34768] [4.1/4.2/4.3 Regression] Wrong code with conditional function invocation
- From: "rguenth 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 Jan 2008 13:50:45 -0000
- Subject: [Bug c/34768] [4.1/4.2/4.3 Regression] Wrong code with conditional function invocation
- References: <bug-34768-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-01-13 13:50 -------
The bug is in common_pointer_type (), where we merge the function type
qualifiers (TYPE_READONLY is used for 'const' functions):
else if (TYPE_P (exp) && TYPE_READONLY (exp) && ! TREE_THIS_VOLATILE (exp))
flags |= ECF_CONST;
volatile is used as 'noreturn'.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34768