¶1 In North Carolina credit is given for time served under a previous sentence for the same conduct, but a defendant is not entitled to credit for time spent in custody awaiting trial. State v. Virgil, 276 N.C. 217, 172 S.E. 2d 281 (1970). Until the date of his commitment on or about 21 April 1970, following certification to Durham Superior Court of the decision of the Court of Appeals filed 1 April 1970 and reported in 7 N.C. App. 548, 172 S.E. 2d 881, defendant’s status was that of a person under indictment awaiting trial in default of bond and not that of a prisoner serving a sentence. “During this period, while in custody in default of bond, defendant was not serving a sentence as punishment for the conduct charged in the bill of indictment.” State v. Weaver, 264 N.C. 681, 142 S.E. 2d 633 (1965).
¶2The sixty days defendant spent in Cherry Hospital under observation was ordered before any trial had been held for the purpose of determining whether defendant was mentally competent to plead to the indictment and to assist counsel in the conduct of his defense. This order was for the protection of defendant’s rights and was properly regarded by the Court of Appeals as time spent in custody awaiting trial. In no sense did it constitute service of a sentence because no trial had been conducted and no sentence pronounced.
¶3In addition to Virgil and Weaver, heretofore cited, the following authorities are in accord with the views above expressed: Williams v. State, 269 N.C. 301, 152 S.E. 2d 111 (1967); State v. *406Foster, 271 N.C. 727, 157 S.E. 2d 542 (1967); State v. Paige, 272 N.C. 417, 158 S.E. 2d 522 (1968); State v. Stafford, 274 N.C. 519, 164 S.E. 2d 371 (1968); North Carolina v. Pearce, 395 U.S. 711, 23 L.Ed. 2d 656, 89 S.Ct. 2072 (1969). See Annotation, 35 A.L.R. 2d 1283.
¶4Defendant contends, however, that by virtue of G.S. 15-186.1 he is entitled to credit for time spent in custody (November 20, 1968 to February 4, 1969) pending appeal of his felony conviction to the Court of Appeals.
¶5Chapters 266 and 888 of the 1969 Session Laws (codified as G.S. 15-186.1) were ratified, respectively, on April 22, 1969, and June 16, 1969. Defendant’s last day in custody “in lieu of bond pending appeal” was February 4, 1969. Thus these enactments designed to give credit on a prison sentence for all time spent in custody pending appeal afford defendant no relief because (1) they are not retroactive and (2) they are by their language not applicable to this case in that defendant’s sentence of imprisonment was reversed rather than affirmed by the Court of Appeals, 4 N.C. App. 478, 167 S.E. 2d 18. Hence, G.S. 15-186.1 does not apply.
¶6Defendant is entitled to credit for time served on the three to six months sentence following commitment (said to be twenty-nine days) and nothing more. All other time in dispute was simply time spent in custody in lieu of bond awaiting trial, or time spent in custody in lieu of bond pending appeal for which credit is not authorized by G.S. 15-186.1.
¶7The following language appears in State v. Weaver, supra:“From the pronouncement of judgment . . . until said judgment was vacated ... defendant’s de facto status was that of a prisoner serving a sentence.” This language is entirely consistent with the views expressed here because Weaver was commited to State’s Prison to serve his sentence on May 9, 1963 — the same day on which judgment was pronounced. Thus he was serving his sentence and was neither in custody in lieu of bond awaiting trial nor in custody in lieu of bond pending appeal. Not so here. In this case defendant simply failed to make bond and obtain his release pending appeal of his felony conviction. As a result he remained in Durham County Jail from November 20, 1968, to February 4, 1969, when bail was posted and defendant was released. His release on bond at that time took place nearly three months prior to reversal of his felony conviction by the *407Court of Appeals on 30 April 1969. These facts conclusively show that defendant was in custody in default of bail pending appeal rather than in custody serving the felony sentence.
¶8For the reasons stated, the decision of the Court of Appeals is
¶9Affirmed.
¶10dissenting:
¶11The record discloses these facts: On April 22, 1968, Durham County officers arrested William Alexander Walker under the authority of a warrant charging assault with intent to commit rape. At the preliminary hearing on May 7, 1968, the court found probable cause and ordered the defendant held for Grand Jury action. In default of bond, the defendant was committed to jail.
¶12On June 13, 1968, the defendant was able to post bond. The following day, the Superior Court committed him to Cherry Hospital for psychiatric evaluation. At the end of the period of commitment (60 days) the authorities found the defendant was without psychosis and released him on his original bond.
¶13On November 20, 1968, the defendant was tried on an indictment charging assault with intent to commit rape. The jury returned a guilty verdict. The court imposed a sentence of 5 to 7 years in prison and ordered the defendant in custody for the service of the sentence. Although the defendant gave notice of his intention to appeal, he remained in custody under the sentence until February 4, 1969, when he was able to post bond and be at liberty pending decision on his appeal.
¶14The Court of Appeals, on April 30, 1969 (4 N.C. App. 478, 167 S.E. 2d 18) reversed the conviction, holding the evidence was insufficient to support the charge of assault with intent to commit rape. The court, however, concluded the evidence was sufficient to go to the jury on a lesser included offense and remanded the case to the Superior Court of Durham County for trial on the charge of assault on a female by a male person.
¶15At the September, 1969 Session, Durham Superior Court, the defendant entered a nolo contendere plea to the misdemeanor charge. The court imposed a prison sentence of not less than three nor more than six months (the latter the maximum for the offense). “Counsel for the defendant moved to set aside the *408judgment and excepted to the sentence on the ground that the defendant was entitled to have the time spent in detainment credited on the sentence imposed.” The trial court denied the motion. The defendant again appealed.
¶16The Court of Appeals (7 N.C. App. 548, 172 S.E. 2d 881) found no error in the judgment and sentence, and thus denied the defendant’s claim of credit for any time served prior to the last sentence, citing as authority State v. Virgil, 276 N.C. 217, 172 S.E. 2d 28.
¶17Many cases and statutes bearing on the questions here for review are cited and discussed in State v. Virgil, supra; State v. Weaver, 264 N.C. 681, 142 S.E. 2d 633, and in the decision of the Court of Appeals in this case. The correct rule fixing the amount of credit due for time previously served for the same unlawful conduct is succinctly stated in State v. Virgil, supra:“Thus North Carolina requires that credit be given for time served under a previous sentence for the same conduct but holds that a defendant is not entitled to credit for time spent in custody while awaiting trial.’’ (Emphasis added) The Court’s opinion in Virgil (in which this writer joined), after stating the rule correctly, perhaps unduly restricted its application by failing to distinguish between the status of a defendant who is in custody awaiting trial and one who is in custody under sentence after trial. The correct rule is stated in this Court’s unanimous opinion in State v. Weaver, supra:“From the pronouncement of judgment . . . until said judgment was vacated . . . defendant’s de facto status was that of a prisoner serving a sentence.” In Patton v. N.C., 381 F. 2d 636 (4th Circuit), the court, speaking of credit for time served, said: “ . . . (H) e shall not be finessed out of credit for time he was forced to serve under an invalid sentence.”
¶18The opinion of the Court of Appeals that the defendant is not entitled to credit for the time spent in jail awaiting his first trial or in the hospital for psychiatric evaluation under the court’s order is correct. However, under the authorities, I think the defendant is entitled to credit on his misdemeanor sentence for the time he served under the felony conviction involving the same wrongful conduct. Both the State and the defendant were bound by the judgment in the felony conviction. In no sense could it be said the defendant was in custody awaiting trial. When the Court of Appeals reversed the felony conviction and remanded the cause to the Superior Court for trial of the mis*409demeanor, then the defendant was in custody awaiting trial. In my opinion the defendant is entitled to credit on the misdemeanor sentence for the time spent in custody under the felony sentence (November 20, 1968 until February 4, 1969). I am unable to agree with the Court’s decision which denies such credit.