[Bug c++/39131] New: decimal float point: ICE on typeid( 0.dd )

View: New views
6 Messages — Rating Filter:   Alert me  

[Bug c++/39131] New: decimal float point: ICE on typeid( 0.dd )

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following, compiled with no further options ("g++ t.cc"), results in an
ICE:

#include <typeinfo>
int main() {
  typeid( 0.dd );
}

Also, documentation on DFPs is not very good. When trying to use DFPs with C++,
constants are recognised, while _Decimal[32|64|128] are rejected. I'd
appreciate some more information on DFPs as them seem really useful to me.


--
           Summary: decimal float point: ICE on typeid( 0.dd )
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: d dot frey at gmx dot de
  GCC host triplet: x86_64-linux-gnu


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


[Bug c++/39131] decimal float point: ICE on typeid( 0.dd )

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #1 from bangerth at gmail dot com  2009-02-12 23:17 -------
Confirmed:

g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ -c x.cc
x.cc: In function 'int main()':
x.cc:3: internal compiler error: in write_builtin_type, at cp/mangle.c:1855
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


--

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at gmail dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-02-12 23:17:54
               date|                            |


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


[Bug c++/39131] decimal float point: ICE on typeid( 0.dd )

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #2 from jason at gcc dot gnu dot org  2009-11-10 23:05 -------
*** Bug 40538 has been marked as a duplicate of this bug. ***


--

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |igodard at pacbell dot net


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


[Bug c++/39131] decimal float point: ICE on typeid( 0.dd )

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-02-12 23:17:54         |2009-11-10 23:06:07
               date|                            |


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


[Bug c++/39131] decimal float point: ICE on typeid( 0.dd )

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #3 from jason at gcc dot gnu dot org  2009-11-12 04:44 -------
Subject: Bug 39131

Author: jason
Date: Thu Nov 12 04:44:24 2009
New Revision: 154113

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154113
Log:
        PR c++/39131
        * rtti.c (emit_support_tinfos): Add DFP types.
        * config/abi/pre/gnu.ver: Add DFP types.
        * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.4.

Added:
    trunk/gcc/testsuite/g++.dg/dfp/typeid1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/rtti.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/pre/gnu.ver
    trunk/libstdc++-v3/testsuite/util/testsuite_abi.cc


--


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


[Bug c++/39131] decimal float point: ICE on typeid( 0.dd )

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #4 from jason at gcc dot gnu dot org  2009-11-12 04:49 -------
The ICE was fixed a while back; the patch I just checked in makes uses of
typeid(0.dd) link.


--

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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