title: Is __attribute__ ((__packed__)) ignored on a typedef declaration?
body: <p>Though <code>__attribute__ ((aligned))</code> works well with the typedef declaration such as :</p>
  
  <pre><code>typedef struct __attribute__((__aligned__(8))) A {
  
       xxx ip    ;
       xxx udp   ;
       xxx ports ;
  } table ;
  </code></pre>
  
  <p>I have come across statements which say that this is not the case with <code>__attribute__ ((__packed__))</code>  with typedef ! I was going through some of the related question and some of them have used the packed attribute with typedef which tallies with our code.</p>
  
  <p>Now , In our code we define </p>
  
  <pre><code>typedef struct {
       xxx ip    ;
       xxx udp   ;
       xxx ports ;
  }__attribute__((packed)) table ;
  </code></pre>
  
  <p>Does the above declaration makes the compiler to <em>silently</em> dump the packed attribute declaration?  </p>
  
  <p>PS : Yes , I could have verified it ,but my circumstances are different at the moment .Lets say holidays and a smartphone !</p>