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]
Other format: [Raw text]

[Bug c++/48015] New: ICE: unexpected expression 'std::min' of kind overload


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48015

           Summary: ICE: unexpected expression 'std::min' of kind overload
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: schnetter@gmail.com


Created attachment 23568
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23568
bzipp2d preprocessed source code

Using gcc version:

$ g++-mp-4.6 --version
g++-mp-4.6 (GCC) 4.6.0 20110305 (experimental)

I execute the command:

$ g++-mp-4.6 -fopenmp -Wall -g3 -m128bit-long-double -march=native -std=gnu++0x
-fbounds-check -fstack-protector-all -ftrapv -O0 -fopenmp -Wall -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Woverloaded-virtual -c data.ii

and receive the error message:

/Users/eschnett/EinsteinToolkit-hg/arrangements/Carpet/CarpetLib/src/data.cc:
In function 'void call_operator(void (*)(const T*, const ivect3&, T*, const
ivect3&, const ibbox3&, const ibbox3&, const ibbox3&), const T*, const ivect3&,
T*, const ivect3&, const ibbox3&, const ibbox3&, const ibbox3&)':
/Users/eschnett/EinsteinToolkit-hg/arrangements/Carpet/CarpetLib/src/data.cc:80:56:
internal compiler error: unexpected expression 'std::min' of kind overload
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The same code compiles fine with g++ 4.5.2.


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