G++ bugs: Can we do anything about them?

Правка en4, от I_love_Hoang_Yen, 2015-10-01 13:31:55

So if you have been coding C++ for a long time, you see people discover bugs in g++ every now and then, for example: this, that, here and there.

In this comment regarding IOI, andreyv said "On IOI they will most likely use the Linux distribution's default GCC, which was tested to build the numerous distribution's packages" and we should not worry about it.

But g++ is also widely used in ACM regionals, which is setup by some hosting university.

So, I have few questions:

  1. Is there any way that we can avoid compiler issues when writing code? e.g. Avoid some specific/strange coding pattern? Pray to god?
  2. How likely do you think that this can actually happen in a contest and affect someone?
  3. Do you know / have been involved in preparing ACM contests & know if people carefully select compiler version?
Теги acm, compiler, c++, g++

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский I_love_Hoang_Yen 2015-10-01 13:31:55 25
en3 Английский I_love_Hoang_Yen 2015-10-01 13:30:06 19 (published)
en2 Английский I_love_Hoang_Yen 2015-10-01 13:27:14 743
en1 Английский I_love_Hoang_Yen 2015-10-01 13:16:51 347 Initial revision (saved to drafts)