bugSimulavr: an AVR simulator - Bugs: bug #38570, Compilation error with gcc 4.7.2


bug #38570: Compilation error with gcc 4.7.2

Submitted by:  Steve Kappel <skappel>
Submitted on:  Fri 22 Mar 2013 02:36:17 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedComponent Version: simulavr

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon 20 May 2013 08:40:54 AM UTC, comment #4:

fixed on HEAD today

Klaus Rudolph <zfrdh>
Project Administrator
Sun 24 Mar 2013 09:19:57 AM UTC, comment #3:

This problem i found also, but it is already fixed in current head of the repository.

My patch for this problem: https://build.opensuse.org/package/view_file?expand=1&file=gcc-4.7-fix&package=simulavr&project=CrossToolchain%3Aavr

Thomas Zimmermann <heinervdm>
Sun 24 Mar 2013 09:02:41 AM UTC, comment #2:

Hi Steve,

if you have successfull compiled all, please start the regression test. ("make check") If the regression test is successfull, then create and attach a patch here with you changes. Thanks!

cu, Thomas

Thomas K. <tomk>
Project Administrator
Fri 22 Mar 2013 02:38:11 PM UTC, comment #1:

Sorry; accidentally hit enter before finishing submission...

gmake[3]: Entering directory `/export/scratch/builds/ada/native/simulavr-1.0.0-obj/src'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../simulavr-1.0.0/src -I/scratch/builds/ada/run/include -g -O2 -Icmd -Iui -Ihwtimer -MT systemclock.lo -MD -MP -MF .deps/systemclock.Tpo -c -o systemclock.lo ../../simulavr-1.0.0/src/systemclock.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../simulavr-1.0.0/src -I/scratch/builds/ada/run/include -g -O2 -Icmd -Iui -Ihwtimer -MT systemclock.lo -MD -MP -MF .deps/systemclock.Tpo -c ../../simulavr-1.0.0/src/systemclock.cpp -fPIC -DPIC -o .libs/systemclock.o
../../simulavr-1.0.0/src/systemclock.cpp: In instantiation of ‘void MinHeap<Key, Value>::Insert(Key, Value) [with Key = long long int; Value = SimulationMember*]’:
../../simulavr-1.0.0/src/systemclock.cpp:135:40: required from here
../../simulavr-1.0.0/src/systemclock.cpp:70:2: error: ‘resize’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../simulavr-1.0.0/src/systemclock.cpp:70:2: note: declarations in dependent base ‘std::vector<std::pair<long long int, SimulationMember>, std::allocator<std::pair<long long int, SimulationMember> > >’ are not found by unqualified lookup
../../simulavr-1.0.0/src/systemclock.cpp:70:2: note: use ‘this->resize’ instead
gmake[3]: *** [systemclock.lo] Error 1

Changing from "resize" to "this->resize" does indeed fix.

Steve Kappel <skappel>
Fri 22 Mar 2013 02:36:17 PM UTC, original submission:
Steve Kappel <skappel>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by zfrdh (Posted a comment)
  • -unavailable- added by heinervdm (Posted a comment)
  • -unavailable- added by tomk (Posted a comment)
  • -unavailable- added by skappel (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 May 2013 08:41:30 AM UTCzfrdhStatusPostponed=>Fixed
    Mon 20 May 2013 08:40:54 AM UTCzfrdhOpen/ClosedOpen=>Closed
    Sun 24 Mar 2013 09:02:41 AM UTCtomkStatusNone=>Postponed

    Back to the top

    Powered by Savane 3.1-cleanup