This is the mail archive of the gcc-prs@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]

Re: c/7271: having problem with pointer to pointer with const in function calling


Synopsis: having problem with pointer to pointer with const in function calling

State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Thu Nov 28 15:18:20 2002
State-Changed-Why:
    Not a bug in gcc.
    For an explanation of the behaviour let's define the following types:
    
      typedef int* X;
      typedef const int* Y;
    
    Then we declare two functions:
    
      void func1(const int** p) == void func1(Y* p)
      void func2(int* const* p) == void func2(const X* p)
    
    With
    
      int** i == X* i
    
    it is okay to call func2 but not func1.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7271


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