public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/26462]  New: initializer element is not computable at load time
@ 2006-02-24 21:03 pluto at agmk dot net
  2006-02-24 21:04 ` [Bug other/26462] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: pluto at agmk dot net @ 2006-02-24 21:03 UTC (permalink / raw)
  To: gcc-bugs

$ cat const.c
#define B0 (+1.0l/5/1/6)

const double c0 = B0; // initializer element is not computable at load time
const double c0_tab[1] = { B0 }; // initializer element is not constant

#define B1 (+1.0l/5)

const double c1 = B1; // ok.
const double c1_tab[1] = { B1 }; // initializer element is not constant

$ gcc const.c
const.c:3: error: initializer element is not computable at load time
const.c:4: error: initializer element is not constant
const.c:4: error: (near initialization for 'c0_tab[0]')
const.c:9: error: initializer element is not constant
const.c:9: error: (near initialization for 'c1_tab[0]')

gcc-4.1.0-rc1 with long-double-128 patchset.


-- 
           Summary: initializer element is not computable at load time
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: ppc-linux
  GCC host triplet: ppc-linux
GCC target triplet: ppc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26462


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug other/26462] initializer element is not computable at load time
  2006-02-24 21:03 [Bug other/26462] New: initializer element is not computable at load time pluto at agmk dot net
@ 2006-02-24 21:04 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 21:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-24 21:04 -------
This is a dup of bug 26374.  The problem is that the middle-end does not fold
IBM 128bit long double format currently.  See PR 19405 for history on why.

*** This bug has been marked as a duplicate of 26374 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26462


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-24 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-24 21:03 [Bug other/26462] New: initializer element is not computable at load time pluto at agmk dot net
2006-02-24 21:04 ` [Bug other/26462] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).