Issue Details (XML | Word | Printable)

Key: PCC-459
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Volkmar Klatt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

major internal compiler error

Created: 03/Aug/14 01:05 AM   Updated: 03/Aug/14 06:40 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. Text File tr_20140731_44.c (0.6 kB)

Environment: pcc 1.1.0.DEVEL 20140729 for i686-pc-linux-gnu


 Description  « Hide
/* tr_20140731_44.c - test file for pcc, Volkmar Klatt
   just an unreducible mess

   pcc 1.1.0.DEVEL 20140729 for i686-pc-linux-gnu
   pcc -c tr_20140731_44.c
   --> major internal compiler error */

struct S { /* or union */
   int f;
};

struct S s = {1};
int i[2][1] = {{0},{0}};

int func_a(struct S p)
{
   return 1;
}

void func_b(void)
{
   short sh = 0;
   long long lo = 0;

   i[lo][sh] = func_a(s);
/* i[sh][lo] = func_a(s); // no error */
/* i[sh][sh] = func_a(s); // no error */
/* i[lo][lo] = func_a(s); // no error */
}




 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 03/Aug/14 06:40 PM
I changed regs.c yesterday which seems to have solved this problem.