Bug 40538 - Compiler crashes while using decimal float point in a function argument
Summary: Compiler crashes while using decimal float point in a function argument
Status: RESOLVED DUPLICATE of bug 39131
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.3.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ABI, ice-on-valid-code
Depends on: 39131
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-24 10:55 UTC by Ivan Godard
Modified: 2009-11-10 23:05 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Godard 2009-06-24 10:55:22 UTC
This code:
typedef typeof(1.0df) decimal32_t;
decimal32_t foo(decimal32_t x) { return x; }
int main() {
    decimal32_t d;
    d = foo(d);
    return 0;
    }

gets you:
~/ootbc/personal/ivan$ g++ foo.cc
foo.cc:2: internal compiler error: in write_builtin_type, at cp/mangle.c:1852
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Andrew Pinski 2009-06-24 14:45:20 UTC
Most likely the same issue as PR 39131.
Comment 2 Ivan Godard 2009-06-24 16:34:37 UTC
Probably not the same as 39131, because this ices only if the function is declared. Both the typedef and the data declaration compile OK without the function, whereas 39131 seems to ice without any use at all.
Comment 3 Jason Merrill 2009-11-10 23:05:55 UTC
It is a duplicate, both have to do with mangling.

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