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++/13941] New: ICE on illegal (void *) &&


1 class X {
      2 };
      3 
      4 void fun (void *p)
      5 {
      6 }
      7 
      8 template<typename T>
      9 X &operator<< (X &x, T s)
     10 {
     11    fun ((void *) &&x);
     12    return x;
     13 }
     14 
     15 int main (int argc, char **argv)
     16 {
     17    X x;
     18    x << 3.;
     19 }

> g++ a.cc
a.cc: In function `X& operator<<(X&, T) [with T = double]':
a.cc:11: internal compiler error: in find_function_data, at function.c:310
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: ICE on illegal (void *) &&
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bug at vogtner dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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