Bug 14605 - [3.4?/4.0 Regression] seg fault on legal code
Summary: [3.4?/4.0 Regression] seg fault on legal code
Status: RESOLVED DUPLICATE of bug 14545
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.0
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-03-16 15:16 UTC by Andrew Pinski
Modified: 2005-07-23 22:49 UTC (History)
1 user (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 Andrew Pinski 2004-03-16 15:16:02 UTC
While trying to reduce 14604, I found this seg fault on legal code

struct X
{
  X();
};

template <class T>
void ChangeKey()
{
    X newVal = X();
}

template
void ChangeKey<int>();
Comment 1 Andrew Pinski 2004-03-16 15:20:33 UTC
Woops a dup of bug 14545.
#0  value_dependent_expression_p (expression=0x0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
cp/pt.c:11782
#1  0x0808ebcb in fold_non_dependent_expr (expr=0x4012b078) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/cp/pt.c:3134
#2  0x080e64ee in cp_parser_initializer_clause (parser=0x40128b40, non_constant_p=0xbffebf57)    at 
/home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:11519

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