This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/535: Internal error on long long int *= conditional.



>Number:         535
>Category:       c++
>Synopsis:       Internal error on long long int *= conditional.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 14 08:36:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bill Canfield
>Release:        gcc-2.95.2
>Organization:
>Environment:
SunOS phoenix 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-80
>Description:
/usr/local/development/gcc-2.95.2/bin/g++ -c       -g -Wreturn-type gcc295bug.cc
gcc295bug.cc: In function `long long int bug(int, int, long long int)':
gcc295bug.cc:9: Internal compiler error.
gcc295bug.cc:9: Please submit a full bug report.
gcc295bug.cc:9: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.

Compilation exited abnormally with code 1 at Thu Sep 14 10:26:20
>How-To-Repeat:
Put this function all by itself in a file, and compile.

long long int bug(int a, int b, long long int val)
{

  long long int increment = val;

  increment *= (a == b) ? -1 : 1;

  return increment;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]