Bug 28840 - internal compiler error
Summary: internal compiler error
Status: RESOLVED DUPLICATE of bug 28116
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.1.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-25 00:31 UTC by Ralf Ecker
Modified: 2006-08-25 09:14 UTC (History)
7 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work: 4.2.0
Known to fail: 4.1.2
Last reconfirmed:


Attachments
test case (gzipped because it's too big) (163.60 KB, application/x-gzip)
2006-08-25 00:39 UTC, Ralf Ecker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Ecker 2006-08-25 00:31:49 UTC
internal compiler error: in expand_expr_addr_expr_1, at expr.c:6336
Comment 1 Ralf Ecker 2006-08-25 00:39:47 UTC
Created attachment 12133 [details]
test case (gzipped because it's too big)

[/usr/source/Radio-TV/qttv_0.0.1/qttv] dc(1)$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.1/configure --prefix=/usr --enable-languages=all,ada,c,c++,fortran,java,objc,obj-c++,treelang
Thread model: posix
gcc version 4.1.1
[/usr/source/Radio-TV/qttv_0.0.1/qttv] dc(1)$ gcc -O3 test.ii
test.cpp: In member function 'void tvGuide::whatsOnAt(long int, long int)':
test.cpp:15: internal compiler error: in expand_expr_addr_expr_1, at expr.c:6336
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 2 David Fang 2006-08-25 04:10:39 UTC
possibly PR 28358 and/or PR 28116
Comment 3 Andrew Pinski 2006-08-25 06:05:41 UTC

*** This bug has been marked as a duplicate of 28116 ***
Comment 4 Andrew Pinski 2006-08-25 06:11:21 UTC
Note the reduced testcase is:
struct QDateTime
{
    QDateTime addSecs( int secs ) const;
    int t;
};
QDateTime gridToDate(long x)
{
  QDateTime date;
  date = date.addSecs(1);
  return date;
}
void whatsOnAt(long x, long y)
{
  gridToDate(x);
}